Hooks

Articles

gform.tools

The gform.tools object is a toolkit that includes functions for tasks like debouncing events, manipulating DOM elements, handling cookies, and managing events.

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/ajax/post_submission_request

The gform/ajax/post_submission_request filter is used to modify the AJAX response after a form is submitted via AJAX, but before the markup is reloaded.

gform/ajax/pre_display_confirmation

The gform/ajax/pre_display_confirmation filter allows add-ons to override the default confirmation display behavior after an AJAX form submission.

gform/ajax/pre_display_error

The gform/ajax/pre_display_error filter is triggered right before an Ajax error message is displayed. It allows developers to customize the error message shown when an Ajax form submission request fails.

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.