Registration is currently disabled.
I am having issues when trying to use Regular Expressions.
Following your help file, I have setup a field as:
$fields['label'] ='Reference #|xxx-xx-xxx|^[0-9]$';
However, I am still able to enter letters, should this not just accept numerics?
and if I add:
$fields['label'] ='Reference #|xxx-xx-xxx|^[0-9]$|err: Reference only numbers';
I should receive a custom error message, but I do not.
Any ideas on where to diagnose my problem?
March 6, 2005
$fields[’label’] =’Reference #|xxx-xx-xxx|^[0-9]+$';
There should be a '+' after the [...].
Also, ensure to check "Is Required" to enable regexp validation!
The custom err part should then work, too.
You also might want to see this for a slightly more flexibly way of dealing with large custom form arrays…(it's in German, but I'm sure you get the idea).
Most Users Ever Online: 959
Currently Browsing this Page:
Guest Posters: 3656
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)