Home › Forum › Laying out a Form › Can I validate/force digits in an input mask?
Tagged: data validation, input maks
This topic contains 2 replies, has 0 voices, and was last updated by srogers 9 years, 9 months ago.
I have an input mask ##### that acts as the search criteria for a database lookup. If a user inputs a number with less that 5 digits (leaving off leading zeroes, for example), the lookup will fail. Can I validate that the field has all five digits?
How about adding simple branch that uses the Length function on your mask input? If the lenght is 5, do your lookup; otherwise show a message (or something). Like so:
Yes, that works well. Figured there’d be a function to let me do this easily. Thanks for the help.
You must be logged in to reply to this topic.