Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

multi field image validation is not working

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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.