Action: gform_register_init_scripts
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form['id']
Example hook names:
gform_register_init_scripts(base hook)gform_register_init_scripts_1(with first modifier value)
Fires when inline Gravity Forms scripts are enqueued
Used to enqueue additional inline scripts
Parameters
| Name | Type | Description |
|---|---|---|
| $form | array | The Form object |
| $field_vale | string | The current value of the selected field |
| $is_ajax | bool | Returns true if using AJAX. Otherwise, false |
Source
Defined in form_display.php at line 3756