Discussion Locked

Form field validation standards

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am looking for standard validation rules for form field validations that normally need to be done in web forms. Can anyone direct me to a resource for this information?

Thanks

5 replies

by donq

Business Rules dictate Validation settings and they will be different from ASP to ASP.

by andrew

The previous reply was correct. You have to look at your business logic semantics to determine this.

Some common rules are:

-disallow nulls or empty data
-validate date formats and ranges
-validate phone number formats
-validate ssn formats
-validate email formats

Provide as many elements as you can to limit users input to valid data. These can by dynamically populated based on other data.

This discussion is closed to new replies.