The Validator enables you to use the HTML5 form validation attributes.
When used, the form attributes set constraints to HTML inputs which are enforced by the browser.
The available constraints are the following:
HTML5 data types (for example,
number, and so on)
For details on setting up the Kendo Validator and the usage of the built-in validation rules and creating custom validation rules refer to the Validation Rules section.
To use HTML5 form validation, add the desired HTML5 attributes to the HTML
<input type="email" required>
An application must never rely on client-side validation as the only form of input validation. Client-side validation can help improve the user experience in an application but it does not replace the need for server-side data validation on all user input.
Depending on the validation constraints, browsers may expose the following issues:
- Old browsers offer no support for HTML5 form validation.
- The support for HTML5 forms in modern browsers is incomplete.
- The validation error messages created by the browser are difficult or impossible to re-style.