Skip to main content

Filter: gform_duplicate_message

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_duplicate_message (base hook)
  • gform_duplicate_message_1 (with first modifier value)

Allows the no duplicate validation message to be customized.

Parameters

NameTypeDescription
$messagestringThe no duplicate validation message.
$formarrayThe form currently being validated.
$field\GF_FieldThe field currently being validated.
$valuemixedThe value currently being validated.

Since

  • 1.8.5: Added $field and $value params.
  • 2.7: Moved from GFFormDisplay::validate().
  • 1.5

Source

  • Defined in includes/fields/class-gf-field-repeater.php at line 176
  • Defined in form_display.php at line 2647