Regular Expression to make Text Field only hold 0-9 is allowing non numeric
Hello,
I need a field in which a user is limited to a 3 digit entry which allows the numbers 0-9.
Currently I am using a text field as my object on my form, so I can limit the length to three characters.
I have looked into regular expressions in order to do what I want, but the problem is that I still can enter ".", "-", and "-". That's the numpad Decimal, numpad Minus, and the dash keys. I am unsure why these are allowed, but I need them to not be, as it allows a user to enter a negative or a decimal number into the field. I imagine something isn't quite right with my regex or how I'm applying it.
If there's a better way of going about this, I'm all ears.