Skip to main content

Validation routines

In addition to the standard validation routines shipped with Jadu Central, form administrators can create custom validation routines to meet specific validation requirements.

It is not possible to edit the validation rules of standard routines, but you can edit a standard routine validation message.

By default, Jadu Central provides validation messages in English, Welsh and Polish. It is also possible to add additional languages to the standard validation routines.

Managing validation routines

Validation routines are managed via the Forms menu.

If your account has permission to access Validation routines, you navigate to their management area by the following:

  1. Click the Forms icon in the left navigation bar. The Forms menu will open.
  2. Click the Validation routines link.

Validation routine fields

FieldNotesRequired?
TitleA descriptive title of what the validation routine does.
Regular ExpressionPattern 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.
MessagesMessages shown when a user's input does not match the required pattern. Multiple localised versions can be provided.

Creating and editing validation messages

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

To add a new validation message for an existing validation routine:

  1. Navigate to the validation routine management area and select the routine you wish to add a message to.
  2. Click the New Message button. This will give you a new row to choose from the list of available Languages and supply an appropriate translated Message for this.
  3. Click the Save button to save your changes.

To delete a Validation Message, click the Delete button to the right of the particular validation message that you wish to be removed.

Deleting validation routines

To delete a custom validation routine:

  1. Navigate to the validation routine management area and click the checkbox next to the validation routine you wish to delete.
  2. Open the Actions menu and click on the Delete option.
  3. You will be asked to confirm that you wish to continue. Confirm the change and the validation routine will be deleted.

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])$