├── CHANGES.md ├── README.md └── gravityforms-regex-validation.php /CHANGES.md: -------------------------------------------------------------------------------- 1 | ### 1.0.1 / 2017-04-19 2 | * Update readme. 3 | 4 | ### 1.0 / 2017-04-19 5 | * Initial release 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gravityforms-regex-validation 2 | A WordPress plugin that adds regular expression validation options to Gravity Forms' single line text input. 3 | 4 | Use regular expressions to validate data entered in the single line text input type. 5 | 6 | ## Usage 7 | 8 | 1. Add your single line text input. 9 | 2. On the Advanced field settings tab, check "Use Regular Expression Validation" 10 | 3. Enter your RegEx pattern in the "RegEx Pattern" field. 11 | 4. Optionally, enter a custom validation message. 12 | 13 | ### Example 14 | 15 | * RegEx Pattern: ^1[0-9]{1}$ 16 | * Validation Message: Please enter a number between 10-19 (inclusive). 17 | 18 | ## Installation 19 | Just download the ZIP for the latest release from this repository and install as normal via WordPress. 20 | 21 | Note: this plugin optionally can be updated using the [Github Updater plugin](https://github.com/afragen/github-updater). 22 | -------------------------------------------------------------------------------- /gravityforms-regex-validation.php: -------------------------------------------------------------------------------- 1 | 31 |
  • 32 | 33 | 36 | 37 |
    38 |

    39 | 40 | 41 |

    42 |

    43 | 44 | 45 |

    46 |
    47 |
  • 48 | 55 | 79 |