Quantcast
Channel: Styles/Scripts Archives - Gravity Forms Documentation
Viewing all articles
Browse latest Browse all 13

gform_init_scripts_footer

$
0
0

Description

This filter is executed during form load. When set to true, the form init scripts are loaded in the footer of the site, instead of the default location of which is in the page body immediately after the form.

Note: This filter does not occur when AJAX is being used within the form.

Note: As of Gravity Forms 2.5 scripts are included in the footer by default.

Usage

add_filter( 'gform_init_scripts_footer', '__return_true' );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GFFormDisplay::get_form() in form_display.php.

The post gform_init_scripts_footer appeared first on Gravity Forms Documentation.


Viewing all articles
Browse latest Browse all 13

Trending Articles