We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Form Validator

Overview

The form validator library enables you to validate a form’s elements before submitting it to the server. It has 14 built-in validation rules along with support for writing custom validation logic.


Data annotation support

The validator has the ability to parse ASP.NET data annotations’ HTML attributes. This enables you to validate ASP.NET MVC and ASP.NET Core form fields without any additional effort.

Model Class

Model class with data-annotation attributes.

Model View

View-based model for data-annotation attributes.

Initializing Form Validator

Initialize the form-validator.


HTML5 support

The validation rules and error messages for form validator can be defined using HTML5 element attributes. This facilitates clean and reusable HTML forms.

HTML5 Code Snippet


Validation error messages

Meaningful error messages are required to communicate the reason a form is not valid. Form validator has options for customizing both a message’s placement and its content.

Customize error messages

Define and customize validation error messages per form element, form, or for your entire application.

Custom error placement

Summarize the error messages and place them in custom locations.


50+ ASP.NET MVC CONTROLS

Transform your applications today by downloading our free evaluation versionDownload Free Trial

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon