The only way I know of to enforce something like this is to use javascript. You can put the script in a plugin template.
The plugin can’t do something like this…unless you can figure out how to do this with a regex expression…
Can on value box put like varchar (10) or something like this?
Do you have any jscript for this?
I guess I don’t understand what you want. What is it you are trying to do?
I see, you just need a regex validation. It goes in the field validation, select “regex/other” and put the regex in the space.
for 13 numbers:
#^[0-9]{13}$#
For 9 numbers, just put {9} instead. The problem is, if they want to add dots or dashes, it won’t validate. It’s helpful to tell users what format will work.
Thx, and is there option like
#^[0-9]{9}$# or #^[0-9]{10}$#
Because we got new format of numbers with 9 digits and 10 digits
Sorry for jumping in here, but can you give me a regex for a UK National Insurance number format (xx000000x) please? Em x
@bw3em: It is considered impolite to interrupt another poster’s ongoing thread unless you are posting a solution or suggestion. It causes significant problems for the forum’s volunteers and prevents us from being able to track issues by topic. Please post your own topic.
I do apologise, thought it might help others looking for regex solutions to have it all in the same place. Please ignore my query.
To accept a range of string lengths, you do something like this to the enumerator:{9,10} That will a minimum of 9 and a maximum of ten digits.