Help with Client Validation for number entry
Hello Everyone,
I don't have experience with Javascript and could use some help getting client validation to work on my form. I have an input that is number type and asks the respondent to enter the floor of the building they work on. I only want floors 1, 4, and 5 to be valid responses.
The data column name is what_floor and I have written the following client validation
what_floor > 0 && what_floor < 6.0 && what_floor != 2.0 && what_floor != 3.0
My validation message reads: "Error, please enter floor 1, 4, or 5."
However, when I test the form, it accepts every number value for the input and the validation message never appears. I'm test this on an HTC ONE (M7).
Please help if you know what is wrong.
Please sign in to leave a comment.
Comments
1 comment