Skip to main content


 

Symptoms


How to validate (in the onkeypress event) a text box in order to only allow numbers and the decimal point.
 

Diagnoses


None
 

Resolution

You can use the validation pattern on the textbox control via regular expression, see link below.
http://stackoverflow.com/questions/2811031/decimal-or-numeric-values-in-regular-expression-validation

-Navigate to the textbox properties, add a new pattern (^ 1-9]d{0,2}(.d{3})*(,d )?$).




 

I am trying to create a validation pattern that allows currency amouts less that $192.31. I can validate a valid number is entered but how can I chedck it is less than 192.31


Reply