Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Pattern Validation shows twice after adding "field requierd" message on exit

Avatar

Former Community Member
Hello everyone,



I have a couple of custom objects in my form (like US SSN, phone and email).

The pattern validation worked fine until I added a java script to those fields to show a message that they are required when you tab out of the field.



The javascript is:

this.mandatory = "error";

this.mandatoryMessage = "this field is mandatory!"; which was added on exit event.



Now the pattern validation shows twice if the data is invalid.
0 Replies