regular expression or mask sample?
Posted: 2011-12-13 11:54
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
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