AEM Forms || Form Field || Valiation Message



Hi Everyone,

I have a problem statement related to AEM forms in which i want to customize validation message. for eg:- i have a date field in which user enters his DOB .There are two conditions that his age should be between some range and also date should be in correct format. Now the ask is that, if user enters a DOB which falls between a range but in wrong format ,say i asked for ddmmyyyy and he enters dmmyyy, so i want to show the error message 1 a saying please enter date in valid format .And second case is that he doesn't lie in valid range , so he sees error message 2  stating that you are not eligible.

But i can enter only 1 error message in validation script message. So, if anyone could help me in solving this problem statement.

Thanks in Advance

Anupam Miglani

Accepted Solutions (0)

Answers (0)