Hooks
Actions
Learn about the different action hooks available within Gravity Forms. Action hooks allow you to perform additional actions when an event takes place.
Filters
Discover the different filter hooks available within Gravity Forms. You can use filters to modify data to better match your particular needs.
JavaScript
Find explanations of the various JavaScript hooks used by Gravity Forms and its add-ons.
Deprecated
Here you will find a listing of the action hooks in Gravity Forms which have been deprecated.
Articles
gform/form_editor/initialized
The gform/form_editor/initialized event is triggered after the form editor has been initialized. It allows developers to perform actions once the editor is ready.
gform/gfcf/hide_conditions
This gform/gfcf/hide_conditions filter allows developers to add custom visibility rules for fields in conversational forms.
gform/gfcf/visibility_field_classes
The gform/gfcf/visibility_field_classes filter allows customization of which field CSS classes should be monitored for visibility changes. The field observer system uses it to watch for changes to the style.display property of fields.
gform/phone/countries
The gform/phone/countries filter allows you to customize the countries list displayed in the international phone field.
gform/post_init
This event is intended for use by add-ons that depend on core scripts. It fires once per form and provides the form ID as a parameter.
gform/post_render
The gform/post_render event can be used to initialize scripts when a form loads. It is a direct replacement for gform_post_render.
gform/products/get_product_meta
The gform/products/get_product_meta filter can be used to modify the product metadata for a field.
gform/products/product_field_changed
This JavaScript event is triggered when any price changes.
gform/repeater/item_pre_add
This JavaScript hook can be used to filter new Repeater Field groups before they are added.
gform/repeater/post_item_add
The gform/repeater/post_item_add action fires after a new repeater item is successfully added to the form. It allows developers to reinitialize JavaScript components such as datepickers, rich text editors, or custom field behaviors on the newly cloned fields.