JavaScript

Articles

gform.state

The gform.state object in Gravity Forms is a utility for managing form state, including storing data, registering callbacks, and observing state changes

gform.recaptcha

The gform.recaptcha object provides utility methods and properties for managing reCAPTCHA integration.

gform.products

The gform.products object in Gravity Forms provides utility methods for managing product related functionality. A Product field in the form is required for the object to be available.

gform.options

The gform.options Object configures jQuery UI accordion widgets for the form editor and adds field interfaces.

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.instances

The gform.instances manages form specific behavior on the page and exposes an internal registry of filters and hooks associated with each form instance.

gform.hooks

The gform.hooks object is a global JavaScript utility for registering and managing client-side actions and filters.

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.

gform.console

The gform.console object provides a centralized and safe way to log messages in Gravity Forms. It acts as a wrapper around the native browser console methods (log, warn, error).