Action: gform_pre_enqueue_scripts
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$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
| Name | Type | Description |
|---|---|---|
| $form | array | The Form Object |
| $ajax | bool | Whether AJAX is on or off (True or False) |
Source
Defined in form_display.php at line 3252