Please replace the ??? with your data!
- Your URL: http://???
- The browser used: Firefox 3
- cforms version: 8.6.2
- Your Wordpress version: 2.6.2
I'm using dynamic forms and i want to implement some check on the form using regular expressions.
What is the right syntax to add them? Before error message? Leaving blank field if I have no custom value?
I have something like this now:
array('Name|err:Insert name','textfield',0,1,0,0,0),
and i want to add a regular expression to check that it is long at least 2 characters.
How can i do this?
This is my formdata array:
$fields['label'][$i] = $field[0];
$fields['type'][$i] = $field[1];
$fields['isdisabled'][$i] = $field[2];
$fields['isreq'][$i] = $field[3];
$fields['isemail'][$i] = $field[4];
$fields['isclear'][$i] = $field[5];
$fields['isreadonly'][$i++] = $field[6];
Do I have also to add a new field here?
Sorry to bother you but I have checked documentation and previous forum posts without success.
Thx in advance!