Filter: $gform_validation_args
Allows custom validation of the form.
Parameters
| Name | Type | Description |
|---|---|---|
| $validation_result | array | An array containing the validation properties. |
| ↳ $is_valid | bool | The validation result. |
| ↳ $form | array | The form currently being validated. |
| ↳ $failed_validation_page | int | The number of the page that failed validation or the current page if the form is valid. |
| $context | string | The context for the current submission. Possible values: form-submit, api-submit, api-validate. |
Since
- Unknown: Unknown
- 2.6.4: Added the $context param.
Source
Defined in form_display.php at line 2562