DEV Community

Cover image for Sitefinity Custom Form Validation Using Vanilla JS
superhands89
superhands89

Posted on

Sitefinity Custom Form Validation Using Vanilla JS

Sitefinity CMS forms rely on default HTML5 validation when the user tries to submit the form. But what if we want more control over the validation on the front end?..

"SitefinityClientSideFormValidationMVC" plugin provides custom form validation for Sitefinity MVC forms using vanilla client side JavaScript.

Features...

  • Validation of all fields/inputs at once, thus removing the need to rely on HTML5 validation of each field individually
  • Pattern validation for email and number fields etc.
  • Smooth scrolling to areas that fail validation on form submit
  • Allows creative control over the way form validation is handled

Here is the GitHub page: https://github.com/Superhands89/SitefinityClientSideFormValidationMVC

Top comments (0)