Hi all,
I just can't make my validation form behaviour to behave correctly.
I need to validate a numeric input field so that the user enter:
VALID VALUES:
1,1
10,01
1000,01
1,0001
NOT VALID VALUES:
1as
1.01
1.000,01
But I cannot find a way to create a mask or regular expression to do this.
Basically the user shuld be forced to enter a number with or without decimals.
The ADDT validation check for integers, positive integers and not as above.
I've set the field as numeric and set validation to 'required' (no validation rule) and number greater than 0.
This way the user can successfully enter:
1
1,0
0,1
and, strangely enough, these values are valid too:
1a
jfj2
8fjjfjf
???
How can I be sure the user entered a number (with or without decimals)?
TIA ver much.
tony
regular expression or mask sample?
Re: regular expression or mask sample?
Take a look at these examples from Stackoverflow
http://stackoverflow.com/questions/3081 ... ision-of-2
http://stackoverflow.com/questions/3081 ... ision-of-2
Re: regular expression or mask sample?
thnaks Fred,
I've googled a lot but didn't find a sample that would accomodate my request. Your link is good. Thanks again.
tony
I've googled a lot but didn't find a sample that would accomodate my request. Your link is good. Thanks again.
tony