Value Rule with REGEX Validation

Last updated Oct 15 2017
The REGEX Validations
Regex reffers to regular expresssions that can be used for validations on forms. FormTitan enables you to use REGEX expressions
inside the your "Value Rule".  This allows you to prevent the user from entering data that is different  from your REGEX definition.

In order to Set a value rule with REGEX all you have to do is: 
1- Drag a textbox element (or use one you already have in the form)
2- Set a value rule
go to: "Properties" panel > "Element" tab > "Value Rule" category
3- Press on the "Set Value Rules" button
4- Configure your rule: choose REGEX from the drop down

5- Enter the expression in the rule textbox and press on "Apply".
6- Save the form.

Example for REGEX may be found on the web. Here are a few:
Click here to see  live REGEX examples

1- Alpha-numeric characters only
2- Date (MM/DD/YYYY)
/^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2}$/
3- Emails
4- Passwords
5- American Express Credit Card
6- Australian Postal Codes
7- Canadian Provinces
8- Lowercase Alphabetic Characters
9- MasterCard Credit Card
10- Phone Numbers (North American)
/^((([0-9]{1})*[- .(]*([0-9]{3})[- .)]*[0-9]{3}[- .]*[0-9]{4})+)*$/
11- Social Security Numbers
12- Uppercase Alphabetic Characters
13- 2-letter US State abbreviates
14- US ZIP Codes
15- Visa Credit Card
16- UK Postal Codes
/^([A-Z]{1,2}[0-9][A-Z0-9]? [0-9][ABD-HJLNP-UW-Z]{2})*$/
17- URLs
CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.