Skip to content

Boolean Question Schema Properties

A true/false toggle question, displayed as a switch or checkbox.

Element type: boolean Key properties: 6

  • Aliases: yes/no, true/false, consent checkbox, toggle.
  • Use when: collecting a binary answer.
  • Recommended properties: type, name, title, labelTrue, labelFalse, isRequired.
{ "type": "boolean", "name": "agree", "title": "I agree to the terms", "isRequired": true }

  • Type: string
  • Default:
  • Localizable: Yes

Gets or sets a text label that corresponds to a positive answer.

  • Type: string
  • Default:
  • Localizable: Yes

Gets or sets a text label that corresponds to a negative answer.

  • Type: string
  • Default:

A value to save in survey results when respondents give a positive answer.

  • Type: string
  • Default:

A value to save in survey results when respondents give a negative answer.

  • Type: boolean
  • Default:

Specifies whether to swap the order of the Yes and No answers.

  • Type: switch
  • Default:

Specifies whether to display a comment area.

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.