gform_disable_ajax_save

Description

The filter gform_disable_ajax_save can be used to turn off AJAX saving in the form editor.

Usage

Applies to all forms.

add_filter( 'gform_disable_ajax_save', 'your_function_name' );

You can also specify this per form by adding the form id after the hook name.

add_filter( 'gform_disable_ajax_save_14', 'your_function_name' );

Parameters

  • $is_ajax_save_disabled bool

    Indicates if AJAX save is disabled for the form. Default is false.

Examples

Disable AJAX saving

This example would disable AJAX saving for all forms.

add_filter( 'gform_disable_ajax_save', '__return_true' );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Since

This filter was added in Gravity Forms v2.6.

Source Code

This filter is located in includes/save-form/class-gf-save-form-helper.php.