Custom Validation
This snippet is an example of how to add custom validation to a Gravity Forms field that is activated by adding a class to the “Custom CSS Class” field setting under the “Appearance” panel of the field settings.
Instructions
- Add to snippet to site. See https://gravitywiz.com/documentation/how-do-i-install-a-snippet/.
- Add
validation-no-period
to the “Custom CSS Class” field setting of the field(s) you want to validate.
Code
Filename: gw-custom-validation.php