Skip to main content

Action: gform_register_init_scripts

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $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

NameTypeDescription
$formarrayThe Form object
$field_valestringThe current value of the selected field
$is_ajaxboolReturns true if using AJAX. Otherwise, false

Source

Defined in form_display.php at line 3756