Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

add name to :pattern for validation of Input component #504

Open
kife-design opened this issue Jul 21, 2017 · 0 comments
Open

add name to :pattern for validation of Input component #504

kife-design opened this issue Jul 21, 2017 · 0 comments

Comments

@kife-design
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant