Jump to content

How do I modify front-end input validation?


safius

Recommended Posts

I want to use a different phone validation regex, since the built-in one allows even single-digit numbers. 

I marked my input with `data-validate="isPhoneNumber"` and modified the `isPhoneNumber` function in validate.js, but the [X] or [tick] sign on the input field is still assigned according to the original regex.

Is this functionality overridden somewhere else? Is it validated on the back-end via AJAX?

 

 

post-1116251-0-25490800-1461174948_thumb.jpeg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...