Skip to main content

Action: gform_print_scripts

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_print_scripts (base hook)
  • gform_print_scripts_1 (with first modifier value)

Fires after any scripts are enqueued (form specific using the ID as well)

Parameters

NameTypeDescription
$formarrayThe Form Object
$ajaxboolWhether AJAX is on or off (True or False)

Since

Source

Defined in form_display.php at line 3343