Forums

Description of fields

picht 09 Mar, 2012
Hi

Where can i find a description on what the different fields in e.g. a textbox are for ?
Thinkng of the "field_id", "field title" etc.

Also the different validation rules. What are the rules for a telephone number, international telephone number, and the dirfference between a digit and an number (sorry english isn't my native language :? )

Have looked at different tutorials and videos, but unable to find the answers...
GreyHead 09 Mar, 2012
Hi picht,

The different fields in the tesxt box are mostly standard HTML attributes; you'll find descriptions ate w3schools.com among many other sites.

The different validations are bsed on Regular expressions: here is the code used for each of them:
{required:/[^.*]/
alpha:/^[a-z ._-]+$/i
alphanum:/^[a-z0-9 ._-]+$/i
digit:/^[-+]?[0-9]+$/
nodigit:/^[^0-9]+$/
number:/^[-+]?\d*\.?\d+$/
email:/^([a-zA-Z0-9_\.\-\+%])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/
image:/.(jpg|jpeg|png|gif|bmp)$/i
phone:/^\+{0,1}[0-9 \(\)\.\-]+$/
phone_inter:/^\+{0,1}[0-9 \(\)\.\-]+$/
url:/^(http|https|ftp)\:\/\/[a-z0-9\-\.]+\.[a-z]{2,3}(:[a-z0-9]*)?\/?([a-z0-9\-\._\?\,\'\/\\\+&%\$#\=~])*$/i

You'll see that phone and hone international are the same (I don't know why); digit is just 0-9; number also allows +/- and a . decimal point.

Bob
picht 09 Mar, 2012
Thanks - just what i needed 😀
This topic is locked and no more replies can be posted.