You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current implemenation of the plugin, we can only perform synchronous validations on model attributes. But in many cases, certain model fields need a basic client side validation (synchronous: well supported in plugin) and firing an ajax call to asynchronously validate the field's entered value on server.
Adding support for such rules would be great, as otherwise, it would need custom handling more often than not.
We can think on the lines of using promises while resolving validation rules to take care of it.
Let me know your thoughts on this enhancement, and will be happy to help!
The text was updated successfully, but these errors were encountered:
+1 I need this for phone number validation, which will happen server side since the validators need to agree and I don't want to require a huge JS lib that does the validation client side
You can create a validator and extend the Validation.validators object with it. I do this by adding a unique validator, on blur, checking to see if it exists or not and then returning true or false to validation.
With the current implementation, it only works with synchronous ajax calls but it would be great if it worked async.
In current implemenation of the plugin, we can only perform synchronous validations on model attributes. But in many cases, certain model fields need a basic client side validation (synchronous: well supported in plugin) and firing an ajax call to asynchronously validate the field's entered value on server.
Adding support for such rules would be great, as otherwise, it would need custom handling more often than not.
We can think on the lines of using promises while resolving validation rules to take care of it.
Let me know your thoughts on this enhancement, and will be happy to help!
The text was updated successfully, but these errors were encountered: