Add regular expression validation options to Gravity Forms single line text input.
Use regular expressions to validate data entered in the single line text input type.
To use:
- Add your single line text input.
- On the Advanced field settings tab, check "Use Regular Expression Validation"
- Enter your RegEx pattern in the "RegEx Pattern" field.
- Optionally, enter a custom validation message.
Example:
- RegEx Pattern: ^1[0-9]{1}$
- Validation Message: Please enter a number between 10-19 (inclusive).
Note: this plugin optionally can be updated using the Github Updater plugin.