multi field image validation is not working | Community
Skip to main content
Level 2
Aug 29, 2023 1:50 AM UTC
Solved

multi field image validation is not working

registry.register("foundation.validation.validator", { selector: "[data-validation=text-validation]", validate: function(element) { let el = $(element); let pattern=/[0-9a-z]/; let value=el.val(); if(pattern.test(value)){ return "Please add only Upper Case Letters in First name"; } } }); this is working code for multi text field validation but same if i do it for image multifield not working

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sady_Rifat
Sady_RifatAccepted solution
New Participant
Aug 29, 2023 5:41 AM UTC

Hello @sudarshan1992 ,
What kind of image validation you are trying to do?
or alternative understanding, in multifield with only textfield your validation is working. But when you add image and textfield at the same time the validation is broken?
Please make it clear.

1 reply

Sady_Rifat
Sady_RifatAccepted solution
New Participant
Aug 29, 2023 5:41 AM UTC

Hello @sudarshan1992 ,
What kind of image validation you are trying to do?
or alternative understanding, in multifield with only textfield your validation is working. But when you add image and textfield at the same time the validation is broken?
Please make it clear.

Translate