Configuring Rules for an Entry Field Element

You can impose constraints on admissible values for an entry field element by using rules.

To add a rule, click the Add... button on the Constraints tab of the element properties. In the Validation Rule: Select Rule Definition window that will open, double-click the Create New Rule ... item in the Allowed Values Rule or Regular Expression Rule list to create a new allowed values or regular expression rule. The corresponding dialog box will open.

Show me the Allowed Values Rule

dialog box

Option Description
Rename... Click this button to rename the rule. In the dialog box that will open, enter a new name of the rule and click OK.
Text
  • Add - adds the entered value to the list.
  • Remove - removes the selected value from the list.
Allow entering custom values Select this option if you wish to allow entering values which are not in the list. If the option is deselected, you can only select a value from the list.

Show me the Regular Expression Rule

dialog box

Option Description
Rename... Click this button to rename the rule. In the dialog box that will open, enter a new name of the rule and click OK.
Pattern
Error message Generate automatically If this option is selected, the text of the error message will be generated automatically. Deselect the option, if you wish to enter a custom text.

25.05.2023 7:55:03

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.