Skip to main content

Create a custom form-specific field validation

Abstract

How to create a custom validation in the Form Designer in a web form.

A web form validation can help a website visitor enter a correct value in a field on your web form. By default, a custom, form-specific field validation is not configured and the Validation field in the Form Designer in the Validation section displays No Validation.

The rules that define a validation are displayed in the Regular Expression field, and they cannot be modified. However, if the validation is not found in the list of form-specific field validations, you can create a custom one that applies only to that field and form once selected.

To create a custom, form-specific field validation:

  1. In the Form Designer, open the relevant web form and click the field that you want to assign a validation to, for example, Password.

  2. On the left pane, in the Validation section, in the Validation field, click the drop-down arrow and select Custom.

    93F5BAF625494FF0A38D6A5505EC2C38.png
  3. In the Regular Expression field, enter the expression you want to use as a validation.

    Note

    You can copy and paste a regular expression from another validation in this field and then modify it if necessary. For example, you can use the regular expression for Letters Only (^[a-zA-Z]*$), and then modify it so it specifies that a user has to enter a combination of upper and lowercase letters.

  4. In the Help field, you can enter a description to tell users what type of information to enter.

    B3DB6BC2CD964F92B1426408F67FF0F2.png
  5. In the Error Message field, you can specify the error message text that you want to appear when a website visitor enters incorrect text or an incorrect value in the field. For example: Please only use letters in this field.

  6. Click Save or Save/Close to save your changes.