Hooks

Articles

gform_recaptcha_enterprise_keys_page_size

ReCAPTCHA’s Enterprise API can only retrieve 100 ReCAPTCHA keys at a time. The gform_recaptcha_enterprise_keys_page_size filter allows developers to set the pageSize to something smaller.

gform_recaptcha_init_script

This filter is no longer available since Gravity Forms 2.0.

gform_recaptcha_language

This filter has been removed. The recaptcha language can be configured in the form editor by editing the field or by using the gform_pre_render filter to set the $field->captchaLanguage property.

gform_recaptcha_valid_hostnames

The filter gform_recaptcha_valid_hostnames allows developers to define the set of hostnames considered valid for reCAPTCHA verification.

gform_register_init_scripts

Tap into Gravity Forms “initialization scripts” functionality and register your own scripts to run inline with Gravity Forms.

gform_repeater_item_pre_add

This JavaScript hook can be used to filter new Repeater Field groups before they are added.

gform_replace_merge_tags

Use the gform_replace_merge_tags filter to create your own custom merge tags.

gform_require_login

The gform_require_login filter can be used to override the form requireLogin property; does the user need to be logged in to view and use the form?

gform_require_login_pre_download

This filter can be used to require the user be logged in before the download URL will allow access to the file.

gform_required_legend

The gform_required_legend filter enables the legend displayed at the bottom of the form header, which explains how required fields are indicated, to be overridden.