Creating new validation routines

First, ensure that Create a new validation routine is selected within Create / Edit Validation Routine dropdown list.

Begin by navigating to XForms Pro > Validation Routines.

Click on New Routine

The Validation Title should be descriptive of what the validation routine does.

The Regular Expression is used to validate the customer's input when applied to a text based component type. The regular expression can be as simple or complex as you require it to be in order to satisfy that the customer has input valid data.

Example regular expressions

Validate a date is after 1950:

(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/20\d\d|(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/19[5-9]\d

Validate a valid MasterCard:

^5[1-5][0-9]{14}$

Numeric Value between 0 and 999:

^([0-9]|[1-9][0-9]|[1-9][0-9][0-9])$

When your regular expression is completed, you will need to provide some validation error messages in the various languages that you wish to support.

results matching ""

    No results matching ""