Script Filters
Articles
gform_config_data_$name
Allows users to filter the raw config data that eventually gets parsed into localized data.
gform_disable_print_form_scripts
This filter can be used to prevent scripts and stylesheets being printed.
gform_footer_init_scripts_filter
Allows the scripts that fire in the footer to be modified.
gform_force_hooks_js_output
The gform_force_hooks_js_output filter can be used to prevent the Gravity Forms scripts from being added to all pages.
gform_init_scripts_footer
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.
gform_load_admin_scripts_globally
Gravity Forms now loads our new JavaScript bundles that were introduced in 2.5 across all admin screens. We have done this since we are using code splitting to dynamically inject JavaScript as it is needed.
gform_localized_script_data_$name
Allows users to filter the data being localized for a given localized object $name.
gform_noconflict_scripts
Use this filter to “register” your script with Gravity Forms, making sure it gets enqueued in the form editor page when no-conflict mode is enabled.
gform_shortcode_preview_disabled
This filter is used to enable/disable the shortcode preview within the Add Form button.