Forums

validate numeric field

chuanse 07 Jul, 2015
Hello,

i was looking at the validate number page but I can't seem to find the rule I need.

I can define max chars but not minimal chars, in this case I need 5 numbers where 04000 is the minimal value (including the first 0) and 59999 is the maximal value.

How do I do this?
chuanse 07 Jul, 2015
I also need to validate the field phone number.
They should be formatted like this: 046xxxxxxx, 047xxxxxxx, 048xxxxxxx, 049xxxxxxx (So these 4 prefixes + 7 digits)
GreyHead 08 Jul, 2015
Hi chuanse,

You'd need to write a custom validation function in JavaScript to check for those values, You can add the function name near the bottom of the validation tab of the element. And.or you can add a Custom Mask to the element to limit the entry so that it only accepts those formats.

Bob
chuanse 08 Jul, 2015
I have no idea how to do that ;(
This topic is locked and no more replies can be posted.