CalderaWP/custom-cf-field-validator

Name: custom-cf-field-validator

Owner: Caldera Labs

Description: EXAMPLE CODE for creating a tutorial on custom field validation.

Created: 2016-09-04 19:01:52.0

Updated: 2016-11-07 17:36:40.0

Pushed: 2016-11-07 17:37:10.0

Homepage: https://calderawp.com/doc/creating-custom-validation-processor-caldera-forms/

Size: 9

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Example Code – Don't Use As Is

Example Caldera Forms processor to add custom validation rules to a form. This is example code for a tutorial: https://calderawp.com/doc/creating-custom-validation-processor-caldera-forms/

If forking this repo to make your own field validator, at least search and replace “my_custom” with a unique slug, and change the function my_custom_cf_validator_is_valid to do the kind of validation you need for a field value.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.