Filter: gform_field_choices_max_count_visible
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form_id
Example hook names:
gform_field_choices_max_count_visible(base hook)gform_field_choices_max_count_visible_1(with first modifier value)
A filter that allows for the setting of the maximum number of choices shown in the form editor for choice based fields (radio, checkbox, image, and multiple choice).
Parameters
| Name | Type | Description |
|---|---|---|
| $max_choices_visible_count | int | The default number of choices visible is 5. |
| $field | object | The current field object. |
Since
- 2.9
Source
- Defined in
includes/fields/class-gf-field-radio.phpat line 215 - Defined in
includes/fields/class-gf-field-checkbox.phpat line 966 - Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-checkbox-markup.phpat line 58 - Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-radio-markup.phpat line 47