The hook is not in the current documentation.
The hook is the gform_validation hook. Here is an example of it's usage:
// set the form validation to false
$validation_result["is_valid"] = false;
$form = $validation_result["form"];
// specify the first field to be invalid and provide custom validation message
$form["fields"]["failed_validation"] = true;
$form["fields"]["validation_message"] = "This field is invalid!";
// update the form in the validation result with the form object you modified
$validation_result["form"] = $form;
You would have to know PHP and hook/filter usage in order to put it to use. That example just sets a field to invalid, you would have to add code above that to check the field value and decide if you wanted to set it to invalid or not.
Posted 9 years ago on Wednesday March 16, 2011 | Permalink