Questions tagged [server-side-validation]

119 questions
3
votes
2 answers

Custom Validator not working for textbox

I am learning how to use custom validator for server-side validation, but I can't seem to get it working. Whenever I click on the button, with the textbox empty, the error message does not show up. What am I doing wrong?
coffeeak
  • 2,980
  • 7
  • 44
  • 87
2
votes
2 answers

How to display server side validation errors next to formPanel fields with extjs4?

I am trying to bind my class fields with my view fields using Extjs4. I have done to an extent where I can submit the form and get a result back but not sure how to display any error message next to respective fields if it fails validation. I would…
user983208
  • 235
  • 2
  • 4
  • 9
2
votes
0 answers

Should server side dto validation validate the existance of data or the integrity?

So far I have always validated my dto`s properties for existing values, min, max, length etc.. Now I have a usecase with my http api where the payload of a http post contains Ids (database foreign keys) which either does not exist in the database or…
Pascal
  • 12,265
  • 25
  • 103
  • 195
2
votes
1 answer

Server side verification of Google Play in-app billing purchase signature failed

i'm currently integrating Google Play in-app billing to my androidgame project, i have a Node.js server set up and plan to send it the "originalJson" and "signature" value of the Google Play purchase response for server side verification. then i put…
2
votes
2 answers

Disable div depending of variable razor with ASP.NET MVC4

I need disable a div depending of a variable razor. I tried a css class but not working because it is very simple disable with developer tools. there is a safe method to perform this task.? I use ASP.NET MVC 4.0 .disableddiv { pointer-events:…
2
votes
3 answers

Server-side verification doesn't work

I have form with client-side verification by jQuery, which works good. But now for security reasons I want to add also server-side verification (php) for users without JavaScript. I created few functions and array "errors", where errors are logged.…
user3560463
  • 149
  • 2
  • 10
2
votes
1 answer

Processing Dynamic Form

I've a JS dynamic form, where i can add or remove fields: Field 1 Field 2 Field 3 Field 4 Now if I remove Field 2 and add a new field: Field 1 Field 3 Field 4 Field 5 I'm sending this through Ajax POST inside a form element. My problem is server…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
2
votes
2 answers

return post data on server side validation failure

I have a large registration form and if a user makes any mistake and failed on server side validation then how could I show up the fields which were previously correct. How can I send the post data back to the registration form?
Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
2
votes
1 answer

Can 1 TextBox have 2 RegularExpressionValidator?

I'm trying to validate a TextBox used for the username in the user registration page. The conditions are: First character should be an uppercase letter. Length should be a maximum of 8 characters. I'm using a RegularExpressionValidator to check…
hima
  • 610
  • 3
  • 10
  • 24
2
votes
1 answer

Make client-side and server-side validation rules the same

I have an application who use ASP.NET MVC and KnockoutJS for the MVVM part. The server bind the data to the server by JSON. The client treat data and make a standard POST callback after that. I have now to handle some business logic like : The…
1
vote
1 answer

Validate radio button on server side using servlets

I'm just wondering if it's possible to validate or check that at least one radio button has been selected on a form within a servlet? Or can this type of validation only occur on the client side with JavaScript etc? As a workaround, I can check a…
elgoog
  • 1,031
  • 1
  • 11
  • 20
1
vote
2 answers

Verifying a user when backing up data to a server

Note: Although I raise this issue in the context of an iOS app, I don't think it's confined to an app running on that specific OS. I'm developing an iOS application that will back up user data to a server and I'm trying to figure out the best way to…
maxedison
  • 17,243
  • 14
  • 67
  • 114
1
vote
4 answers

Is it ok to not display an error when server side verification fails when JavaScript is required?

We have a form that absolutely requires JavaScript to function, and validation is done client side. Validation is also performed server side, but it would be an extreme amount of work to get it to show errors when server side verification fails.…
1
vote
2 answers

Why isn't server side validation working in my ASP.Net MVC3 application with Entity Framework?

I have an ASP.NET MVC3 application that uses entities generated from a database. Each entity has also has a separate partial class that uses the MetadataType attribute to associate each entity with a class that is decorated with a number of…
1
vote
0 answers

validate a user input against multiple unique constraint in a database

I am trying to do a server side validation of a signup input I am using nestjs with prisma and postgresql i receive the request body as two filds for example import { IsEmail, IsNotEmpty, IsString, IsMobilePhone} from "class-validator"; export…