Articles

gform_image_sizes

This filter allows you to customize the image sizes that are registered for the Image Choice fields. You can modify the width, height, and crop settings for the small, medium, and large image choice sizes registered by default.

GF_ENABLE_NOTIFICATION_EMAIL_HEADER

This constant enables the X-Gravity-Forms-Source email header for notification emails.

gform_notification_email_header

The gform_notification_email_header filter adds the ability to enable and customize the X-Gravity-Forms-Source email header for notification emails.

gform_recaptcha_enterprise_keys_page_size

ReCAPTCHA’s Enterprise API can only retrieve 100 ReCAPTCHA keys at a time. The gform_recaptcha_enterprise_keys_page_size filter allows developers to set the pageSize to something smaller.

gform_googleanalytics_mp_session_id

The gform_googleanalytics_mp_session_id filter allows developers to override the session ID used by the Google Analytics 4 Measurement Protocol integration.

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.

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

gform.config

The gform.config object provides utility functions for retrieving, updating, and validating forms configuration settings in JavaScript. It includes methods for working with both local and AJAX loaded configuration data.