PHP Generator provides support for both control level and form level client-side data validation. Control level validation means that data are verified after a user enters a value into a form field and moves onto the next field on the form. On using the form-level validation the data are verified after the user enters (correct) values into all the fields and submits the form.
For control-level validation you can bind one or more of predefined validators like Data Length, Data Range, Email, URL, Credit Card, Regular Expression, etc. to a form field directly in the software UI. To implement form-level validation, you need to provide OnInsertFormValidate and/or OnEditFormValidate event handlers.
The example below learns how to implement control-level validation based on a regular expression (the value of the Name field should start with a capital letter), and form-level validation (values of Name and Last Name fields must be different). Open Insert or Edit forms to see this in action.