Skip to content

Button Group Question Schema Properties

A question that displays choices as a group of buttons.

Element type: buttongroup Key properties: 12

  • Aliases: segmented control, button choices, pill choices.
  • Use when: respondents choose from a small set of prominent options.
  • Recommended properties: type, name, title, choices, isRequired.
{ "type": "buttongroup", "name": "plan", "title": "Choose a plan", "choices": ["Basic", "Pro", "Enterprise"] }

  • Type: buttongroupitemvalue[]
  • Default: []
  • Type: restfull
  • Default:
  • Type: question_carryforward
  • Default:
  • Type: string
  • Default: "all"
  • Allowed values: all, selected, unselected
  • Type: condition
  • Default:
  • Type: condition
  • Default:
  • Type: string
  • Default: "none"
  • Allowed values: none, asc, desc, random
  • Type: number
  • Default: 1
  • Allowed values: 0, 1, 2, 3, 4, 5
  • Type: boolean
  • Default:
  • Type: boolean
  • Default:
  • Type: switch
  • Default:
  • Type: boolean
  • Default:

This page lists only properties that are specific to this element type or especially important for generation.

  • Use Shared Question Properties for common fields such as name, title, description, isRequired, requiredIf, visibleIf, enableIf, readOnly, defaultValue, validators, width, and layout options.
  • Use Shared Choice Question Properties for shared choice fields such as choices, choicesByUrl, choicesFromQuestion, showOtherItem, showNoneItem, and special choice labels.
  • Use Choice Item for object choices and Choices By URL for remote choice loading.