Validation Filters

Articles

gform_allowable_tags

Use this filter to enable HTML or specify accepted HTML tags in submitted entry data.

gform_duplicate_message

This filter is executed when a form fails the duplicate field validation, before the validation message is displayed. Use this filter to change the the message that is displayed when a field fails the duplicate value validation.

gform_email_field_rejectable_values

The gform_email_field_rejectable_values allows developers to define specific email addresses or partial email patterns that should be rejected during form validation.

gform_field_validation

Use this filter to create custom validation logic for a field.

gform_form_validation_errors

The gform_form_validation_errors filter enables the list of validation errors, which will be displayed at the top of the form, to be overridden.

gform_form_validation_errors_markup

The gform_form_validation_errors_markup filter enables the markup for the validation errors list, which is located at the top of the form, to be overridden.

gform_is_disabled_duplicate_submissions_protection

The gform_is_disabled_duplicate_submissions_protection filter allows you to disable duplicate submission protection.

gform_is_duplicate

This filter is executed during the validation of fields marked with the "No Duplicates" rule. Use this hook to specify a custom duplicate validation logic.

gform_is_valid_conditional_logic_operator

Filter which checks whether the operator is valid. Allows custom operators to be validated.

gform_is_valid_url

Filters the result of URL validations, allowing for custom validation to be performed.