Field Validations Overview |
![]() ![]() ![]() |
Form Processor Pro allows you to control, check and verify user inputted data by using a number of bundled validating functions. It means you may set some restrictions or requirements for any field on your form. For example, if you have some text field, named “your_email” and you want to be sure that all applicants will give you correct email address and nothing else; you should use your form configuration and add the following line: [my_form] By doing this you are forcing form applicants to provide you with correct email address on field named “your_email” Detailed syntax of major form validators' configuration: validator_name = field_name1 (field title 1), field_name2 (field name 2), … Where: validator_name - the name of Form Processor Pro validator. Also you may use special “field titles” for your fields, written in round brackets. It will be shown up in error message, if the field contains any errors or misspells, otherwise field_name will be shown. Examples for your good understanding:
By example #1 we require form applicants to input correct email address in field “email” and in case it wasn't an email address the error message will be generating, like: Field "Email address" is not correct email address Example #2: we are checking zip code on field “zip”, as you see it's not necessary to use field title; in case of error the following message will be shown: Field "zip" is not correct zip code Moreover, you can set more than one field in one validation set. Please, refer to example #3, we set fields name, zip and email as required to be filled |