Skip to main content

GF_Field_Multiple_Choice

Source: includes/fields/class-gf-field-multiple-choice.php:8

Details​

  • Kind: class
  • Namespace: (global)
  • Extends: GF_Field

Properties​

PropertyTypeDescription
$repeatableboolWhether the field can be used in a repeater.

Methods​

MethodDescription
get_form_editor_field_description()Returns the field's form editor description.
get_form_editor_field_icon()Returns the field's form editor icon.
get_choice_field_select_all_markup()Generate the "select all" choice markup for the choice field.

Method Reference​

get_form_editor_field_description()​

public function get_form_editor_field_description()

Returns the field's form editor description.

Returns​

  • string

Source: includes/fields/class-gf-field-multiple-choice.php:30

get_form_editor_field_icon()​

public function get_form_editor_field_icon()

Returns the field's form editor icon.

This could be an icon url or a gform-icon class.

Returns​

  • string

Source: includes/fields/class-gf-field-multiple-choice.php:41

get_choice_field_select_all_markup()​

public function get_choice_field_select_all_markup( $value, $tabindex, $selected_choices_count )

Generate the "select all" choice markup for the choice field.

Parameters​

NameTypeDefaultDescription
$value
$tabindex
$selected_choices_count

Returns​

  • string — The select all choice markup.

Since: 2.9.0

Source: includes/fields/class-gf-field-multiple-choice.php:74