Support › Meta Box AIO › Email/text Validation not working on cloneable fieldResolved
As shown in the image we have a cloneable text field where we added email validation.
As your documentation states, jquery uses input name, not id. Since in this case the input names will be hr_emails, hr_emails, hr_emails[...] how can we make it work?
I've confirmed that when hr_emails was used in the code only the first field validation would work.
Appreciated for you help,
Henrique (Novify Team)
Thanks for your feedback.
The validation is not working with cloneable fields, please try to use the HTML validation to validate them. Please read more here https://docs.metabox.io/validation/#validation-with-input-attributes
and refer to this topic https://support.metabox.io/topic/validation-does-not-work-for-fields-in-group/
Oh alright. HTML pattern attribute worked well. Maybe I should have given a better look at your documentation.
Thanks a lot!