This topic contains 2 replies, has 2 voices, and was last updated by Jon 4 years, 6 months ago.
January 16, 2013 at 10:43 am #733
Is it possible to specify the amount of numbers used in a text field?
So, for example, if I want the user to only enter a 5 digit number, I’d use the number class, but how do I control the length?
Is this possible?January 17, 2013 at 10:52 am #734
For length of the field, you can use the maxlength from the contact form 7.January 17, 2013 at 1:16 pm #736
That will control the length, yes, but it doesn’t stop the form being submitted if the user only enters 4 digits and you require 7. I didn’t know if there was a way that assured that the user could only enter say 7 digits, and entering less than 7 would bring up the validation warning.
The topic ‘Number length validation’ is closed to new replies.