Home > Manage Additional Profiles > Configure Text Validation Rules
Export to PDFText validation rules can be applied to Single line of text or Multiple lines of text metadata. When end users enter values for these Single line of text or Multiple lines of text on the request page, the metadata values will be validated according to the regular expressions or blocked words defined in the text validation rules.
To access Text validation rules, click the Text validation rules card on the Profiles & templates page.
To create a text validation rule, click Create on the ribbon to open the Create text validation rule panel and configure the following settings:
Rule name – Enter a name for the text validation rule.
Description – Enter an optional description for the text validation rule.
Type – Select the type for the text validation rule.
Regular expression – Validate the metadata values via a regular expression. Complete the following settings:
Regular expression – Enter a regular expression for this rule.
The regular expression is validated according to the JavaScript language style here. A regular expression consists of the regular expression body and expression options. In addition, the regular expression body must start with the character / and end with the character /.
For example, if you want to validate that the entered content matches three case-insensitive letters, the regular expression should be /^[A-Z]{3}$/i.
For more information about the regular expression, refer to the following articles:
Display message for invalid content – Enter the message that will be displayed to the user if the entered content is invalid.
Validation test (optional) – Enter content in the text box and then click Validation Test to test the expected behavior of the entered regular expression.
Blocked words – Validate the metadata values via blocked words. Complete the following settings:
Blocked words – Enter the blocked words for this rule. To configure multiple blocked words, enter each word on a new line. The words are not allowed to be contained in the metadata value.
The blocked words are validated via exact match. For example, if you enter abc as the blocked word, the word abc will be blocked while the word abcd will not be blocked.
Display message for invalid content – Enter the message that will be displayed to the user if the entered content is invalid.
Click Save when you finish all your configurations.