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
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.