Skip to main content

Filter: gform_required_legend

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_required_legend (base hook)
  • gform_required_legend_1 (with first modifier value)

Modify the legend displayed at the bottom of the form header which explains how required fields are indicated.

Parameters

NameTypeDescription
$messagestringThe required indicator legend.
$formarrayThe current Form.

Since

Source

Defined in form_display.php at line 1245