Gravity Forms Regular Expression Validation #8 in Forms
A WordPress plugin that adds regular expression validation options to Gravity Forms' single line text input.
by Matt Mirus · github.com/mmirus/gravityforms-regex-validation · website
★ 16stars
45release downloads
≈10active sites
2forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/mmirus/gravityforms-regex-validation/releases/download/1.0.1/gravityforms-regex-validation.zipDeclares an update source (https://github.com/mmirus/gravityforms-regex-validation), so updates arrive through the plugin's own updater.
From the readme
gravityforms-regex-validation
A WordPress plugin that adds 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.
Usage
1. Add your single line text input.
2. On the Advanced field settings tab, check "Use Regular Expression Validation"
3. Enter your RegEx pattern in the "RegEx Pattern" field.
4. Optionally, enter a custom validation message.
Example
RegEx Pattern: ^1[0-9]{1}$
Validation Message: Please enter a number between 10-19 (inclusive).
Installation
Just download the ZIP for the latest release from this repository and install as normal via WordPress.
Note: this plugin optionally can be updated using the Github Updater plugin.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0.1 | Apr 19, 2017 | gravityforms-regex-validation.zip | 33 |
| 1.0 | Apr 19, 2017 | gravityforms-regex-validation.zip | 12 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.