How can I validate based on a pattern?
Step-by-step guide
- Click on Modules.
- Select the Module with the appropriate form field to add the pattern to.
- Select the Forms tab.
- Select Field List button "Create/Update Fields".
- Use the filter to find field that is intended to add the pattern to.
- Select edit on the field.
- Select “Validation” tab.
- As depicted in the picture below, within the “Pattern” section type:
[0-9] +([,; ] *?[0-9]+)*[,; ]*
Pattern condition as follows: Add multiple Entries.
(Example: A pattern for allowing multiple numbers that are separated by either a, or; [0-9] +([,; ] *?[0-9]+)*[,; ]* - require a comma or semicolon delimited list of numbers.)
Related articles