Question
Custom validation and multiple error messages
I need to create custom validation that looks at different errors that could occur. This is my survey question:
What year did you move into ___?
List year: (text box)
Or if it's easier to remember your age, enter that: (text box)
My validation looks to make sure that the year is less than/= current year and age is less than/= current year.
I also need to ensure that they enter a 4 digit year and am using" matches regex" ^[0-9]{4}$.
I created a custom message to cover the year/age issue and would like to use javascript to alert for the regex error but feel it might be too complicated. I've read that I will need to hide the "next" button, and I'm not advanced enough for that, and I'm also not sure how to reference a custom error message in javascript.
Can someone provide any direction on where to start?
Leave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.