Posted: 30 Nov 2016 5:25 EST Last activity: 19 Dec 2016 9:17 EST
Limiting Text Box Inpu t
I have a TextBox where I am asking a user to input a telephone number. Can anyone help with how I would go about limiting the input to only being 0-9 + ( ) as they are typing, if this is possible?
So far I have used the TextChanged and KeyUp/down events leading into a Regex Match rule and then showing an error if anything other than the stupulated is entered. Issue with this is that when a user can still input anything in the box.
The property which you are referring there you can Use Edit Validate Rule to validated the the user Input. There is OOTB Rule named "APPPHONENUMBER" Just refer this rule into your Propety (Advance Tab-> Edit Validate) Save it .This will work as you are expecting it accepts 0-9,(),-,+ and wont allow user to enter charecters.