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

gform_form_theme_slug

Description The gform_form_theme_slug filter can be used to filter the form theme. Usage Applies to all forms: add_filter( 'gform_form_theme_slug', 'your_function_name', 10, 2 ); Parameters $slug...

View Article


gform_init_scripts_footer

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

View Article

gform_load_admin_scripts_globally

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

View Article

gform_localized_script_data_$name

Description Allows users to filter the data being localized for a given localized object $name. Usage add_filter( 'gform_localized_script_data_foobar', 'your_function_name', 10, 3 ); Parameters...

View Article

gform_sanitize_confirmation_message

Description The “gform_sanitize_confirmation_message” filter in Gravity Forms is used to sanitize the complete confirmation message just before outputting to the page. All scripts will be removed. By...

View Article


gform_shortcode_preview_disabled

Description This filter is used to enable/disable the shortcode preview within the Add Form button. Usage add_filter( 'gform_shortcode_preview_disabled', 'your_function_name' ); Parameters...

View Article

gform_force_hooks_js_output

Description The gform_force_hooks_js_output filter can be used to prevent the Gravity Forms scripts from being injected into the pages if they’re not necessary. Usage add_filter(...

View Article

gform_footer_init_scripts_filter

Description Allows the scripts that fire in the footer to be modified. Note: The gform_init_scripts_footer must be set to true so scripts are initialized in the footer of the site instead of the page...

View Article


gform_disable_print_form_scripts

Description This filter can be used to prevent scripts and stylesheets being printed when GFCommon::gform_do_shortcode() processes form shortcodes located in various form settings and confirmations...

View Article


gform_disable_form_theme_css

Description The gform_disable_form_theme_css filter allows the default theme used by forms created with Gravity Forms 2.5 and greater to be disabled. Usage The filter which would run for all forms...

View Article

gform_disable_form_legacy_css

Description The gform_disable_form_legacy_css filter allows the CSS to be disabled for forms using the legacy markup, usually forms created with Gravity Forms 2.4 and earlier. Usage The filter which...

View Article

gform_disable_css

Description The filter gform_disable_css can be used to disable all CSS files from being loaded on the frontend. This includes styles which handle conditional logic, columns, hidden fields, ready...

View Article

gform_config_data_$name

Description Allows users to filter the raw config data that eventually gets parsed into localized data. This is useful for adding in mock data for a given value. Usage add_filter(...

View Article

Browsing all 13 articles
Browse latest View live