Hooks

Articles

gform.utils

The gform.utils object in Gravity Forms provides a collection of utility functions and modules to assist developers in performing common tasks such as DOM manipulation, data processing, browser compatibility, etc.

gform/ajax/post_ajax_submission

This filter allows developers to customize or modify the response data, including additional information, custom messages, or altered submission details.

gform/ajax/post_page_change

The gform/ajax/post_page_change event allows developers to to execute custom JavaScript logic after a form submission is processed via AJAX.

gform/conditionalLogic/applyRules/end

The gform/conditionalLogic/applyRules/end event allows you to react after conditional logic is applied. Use it to trigger animations, restore inputs, or handle field visibility updates in conversational forms.

gform/conditionalLogic/applyRules/start

The gform/conditionalLogic/applyRules/start event allows you to run custom logic right before conditional rules are applied. It’s useful for prepping UI changes, showing loaders, or managing field state in conversational forms.

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/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/product_field_changed

This JavaScript event is triggered when any price changes.