Plug-in Validation Architecture
The Zapatec AJAX Forms uses a plug-in architecture that provides both a variety of ways
to validate fields and a facility for customizing validations.
-
Built-in validators The forms come with built-in validators for integers, floating points, dates, US phone numbers, etc.
-
Mask-based validators Using masks such as ###-##-#### you can easily define custom validators for US SSN and postal codes.
-
Limit keys used You can limit the keys that the user can enter in a field (for example, allow only numeric keys).
-
Regex validator You can create your own custom validator using a regular expression .
-
Javascript validator For those cases where a regex is not enough, you can create a javascript-based validator.
CSS-Based Themes
The look and feel of a form is controlled by CSS. Choose from existing themes, or create your own.
CSS-Based Icon Display Rules
Set rules that control the feedback icons that users see while typing, on error, etc.
Error Handling
There are four levels of error handling in the Zapatec AJAX Forms.
-
While the user is entering data into the field:
You can provide feedback to users while they are typing to indicate that the field is valid or is not yet valid.
-
When the user has moved out of the field:
You can provide feedback indicating whether the data in the field is valid.
-
When the user tries to submit the data to the server:
You can provide feedback about all the fields that contain errors.
-
When the server has responded:
You can display errors that the server has found.
AJAX client server communication
You can configure the form to use the Zapatec AJAX Transport to communicate with the server to validate
the data. The form will either display the errors or perform the appropriate operation depending on
the server's response.