Skip to main content

Filter: gform_field_input

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id
  2. $field->id

Example hook names:

  • gform_field_input (base hook)
  • gform_field_input_1 (with first modifier value)
  • gform_field_input_1_2 (with all modifier values)

Filters the field input markup.

Parameters

NameTypeDescription
$stringempty The markup. Defaults to an empty string.
$fieldarrayThe Field Object.
$lead_idintThe entry ID.
$valuestringThe field value.
$form_idintThe form ID.

Since

  • 2.1.2.14: Added form and field ID modifiers.

Source

Defined in common.php at line 3742