34
Views
2
Comments
Validation For Repetitive input fields
Question

I have long form which have a lot of validation. But some of validation are repetitive.


E.g office 1 phone no, office 2 phone no, office 3 phone no, etc


So I need to check all of phone no input fields. Error Message want to show below input field.


E.g if office phone 1 is incorrect, it needs to show error message below the input field of office 1 phone no.


Therefore I have bulk amount of repetitive checking at my code.


Please help me how should I do for above condition.



2019-09-17 09-11-00
João Pedro Abreu
Staff

I don't know any better way to implement server side form validations, but I'm very interested to see if anyone has a better suggestion.

2014-10-21 20-15-17
Alberto Ferreira

Hello João


I would like to know other form of do it.


Best Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.