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
{{ message }}
This repository has been archived by the owner on May 25, 2018. It is now read-only.
I have a big form that is being validated on the server side. If the validation fails, then it will return all the errors that have occured.
So i want use a function as the :pattern method and want to check if the current field is in the errors. However, only the value is being passed to the function, so if i have to define a separate validation function for every input in the form. It would be handy is the name of the input would also be passed to the :pattern method so we can use one function to validate various fields.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a big form that is being validated on the server side. If the validation fails, then it will return all the errors that have occured.
So i want use a function as the :pattern method and want to check if the current field is in the errors. However, only the value is being passed to the function, so if i have to define a separate validation function for every input in the form. It would be handy is the name of the input would also be passed to the :pattern method so we can use one function to validate various fields.
The text was updated successfully, but these errors were encountered: