Solved
User input validation
I have one of these composite ID questions that require two digits each from first name, last name, month of dob and day of dob.
On the last two validation can be set for a numeric range, which is fine except that it will allow for a single character. The first two, can be set two either character data type, or a character limit of 2, but not to meet both of these criteria. I am thinking that this will require custom code, and can find examples of regex and other code that would do the validation, but I am too much of a novice to get the values from the questions, examine the input and write out the error text etc. to make this work. Am I right thinking that this can not be done without custom code? I know the question is way to simple for sages and wizards, but if you would point me to a resource or have some code I could use, I will really appreciate it.
Thanks in advance for any help you can give!
Best answer by Anonymous
Hello @MImre ,
1. For first and last name validation use "matches regex" in "custom validation" option and enter the following code(without quotes) in the box beside "match regex" :
"^[A-Za-z]{2}$"
2. For month and day validation use "matches regex" in "custom validation" option and enter the following code(without quotes) in the box beside "match regex" : "^[0-9]{2}$"
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
