
Solved
How to set Maximum Length (character limit) on each field in the Text Entry question "Form" type?
Hello everyone,
How can I limit the text entry to five characters total for each field in a text entry "Form" type question? I know how to do this for single line, but not for "form." In other words, I need the validation to limit the Maximum Length to 5 characters, but it can also be as little as 0 characters (an empty field) to pass the validation. I want to accept string characters, periods, and spaces, as long as they do not add up to more than 5 characters.
Thank you in advance.
!
Hello everyone! I figured it out. There may be a faster way to do this, but this works too.
For each field make sure there is no validation. Then under question validation, choose "Custom Validation" and for each field use Matches Regex to "^[A-Za-z0-9 .]{0,5}$" . This allowed me to accept, letters, numbers, periods, and spaces, all up to five characters of it.

Best answer by TomG
I'm not sure what you mean by "string characters". If you mean letters and digits, then add custom validation so that all fields match regex `^[a-z0-9.\\ ]{0,5}$`.
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.