Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
Jump To Section

Description #description

When Gravity Forms is in No-Conflict mode, along with enqueuing JS using wp_enqueue_script() you also need to specifically register scripts so they are loaded on Gravity Forms pages.

We’ve ensured any enqueued scripts with a handle beginning with “gfpdf_js” are automatically registered, but you may need to register other WordPress scripts. This filter allows you to easily register a WordPress JS handler so it’s included on No Conflict Gravity Form pages.

Parameters #parameters

$items | array
The list of JS handlers currently being registered with Gravity Form’s No-Conflict mode.
By default any JS handler beginning with “gfpdf_js”, and already enqueued, are registered on Gravity Forms pages. The following WordPress scripts are also registered on Gravity PDF pages:
$default_scripts = array(

Usage #usage

This example will register two core WordPress JS files with Gravity Forms No-Conflict mode.

add_filter( 'gfpdf_gf_noconflict_scripts', function( $items ) {

     * Register the jQuery Effects Core and jQuery Effects Fade JS with
     * Gravity Forms No-Conflict Mode.
     * Note: You still need to call wp_enqueue_script( 'jquery-effects-core' );
    $items[] = 'jquery-effects-core';
    $items[] = 'jquery-effects-fade';

    return $items;
} );

Source Code #source-code

This filter is located in the Router::auto_noconflict_scripts() method of /src/bootstrap.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Scroll To Top

Choose your currency:

Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)