By teilai - 12/15/2014
I want to constrain the participant input in a textbox to positive integers or zero, and use a corresponding mask "positiveintegerorzero." However, it does not work if one uses a comma as a decimal separator (as people here in Europe do), and inputs such as 0,500 are happily accepted. This is not a major problem, but if anyone knows a quick solution (to use a regular expression?), I'd like to see it.
Thanks,
|
By Dave - 12/15/2014
Yes, a regular expression in the /mask attribute should do the trick:
/ mask = ^[0-9]+$
|
|