Skip to main content

Action: gform_pre_enqueue_scripts

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_pre_enqueue_scripts (base hook)
  • gform_pre_enqueue_scripts_1 (with first modifier value)

Fires before 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)

Source

Defined in form_display.php at line 3252