JavaScript

Articles

gform/datepicker/pre_init

This article explains how to use the gform/datepicker/pre_init filter to modify the options used to initialize a field’s datepicker before it is rendered.

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/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/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/phone/countries

The gform/phone/countries filter allows you to customize the countries list displayed in the international phone field.

gform/submission/submission_started

The gform/submission/submission_started filter allows developers to execute custom synchronous logic immediately before a form submission is processed

gform.submission

The gform.submission object provides functions for managing form submissions with JavaScript. It includes methods for submitting a form, detecting the submission method, and preventing duplicate submissions.

gform JavaScript Object

This page lists the available functions and objects, along with their types. Developers can use this as a reference when working with the Gravity Forms JavaScript API.

gform.core

The gform.core object provides core utility functions used internally by Gravity Forms. It currently includes the triggerPostRenderEvents() method, which manually triggers post render JavaScript events fired after a form or field is rendered.