The ASP.NET Core Form Validation library enables you to validate HTML form input elements before submitting them to a server. It has 14 built-in validation rules such as required, email, URL, date, and more, along with support for writing custom validation logic and HTML5 data attribute validation.
The Form Validation library has the ability to parse ASP.NET data annotation validation attributes such as Range, Required, RegularExpression, and StringLength. This enables you to validate ASP.NET Core form fields without any additional effort.
Model class with data-annotation attributes.
View-based model for data-annotation attributes.
The HTML5 form element’s data attributes can be used to define validation rules and error messages for the Form Validation library. This facilitates clean and reusable HTML forms.
The Form Validation library provides meaningful validation error messages when the expected validation rule isn’t followed by the input value. This validation plugin itself has options for customizing both the validation message’s placement and its content.
Define and customize validation error messages for individual form elements, entire forms, or for an entire application. This enables you to set custom error messages instead of being limited to built-in validation error messages.
Summarize error messages and place them in custom locations. This option is useful for taking a validation message from a default location and moving it to any custom location in the application.