multi field image validation is not working | Community
Skip to main content
Level 2
August 29, 2023
Solved

multi field image validation is not working

  • August 29, 2023
  • 1 reply
  • 481 views

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.
Best answer by Sady_Rifat

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
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
August 29, 2023

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.