Boolean Question Schema Properties
A true/false toggle question, displayed as a switch or checkbox.
Element type: boolean
Key properties: 6
Generation Hints
Section titled “Generation Hints”- 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 }Key Properties
Section titled “Key Properties”labelTrue
Section titled “labelTrue”- Type:
string - Default:
— - Localizable: Yes
Gets or sets a text label that corresponds to a positive answer.
labelFalse
Section titled “labelFalse”- Type:
string - Default:
— - Localizable: Yes
Gets or sets a text label that corresponds to a negative answer.
valueTrue
Section titled “valueTrue”- Type:
string - Default:
—
A value to save in survey results when respondents give a positive answer.
valueFalse
Section titled “valueFalse”- Type:
string - Default:
—
A value to save in survey results when respondents give a negative answer.
swapOrder
Section titled “swapOrder”- Type:
boolean - Default:
—
Specifies whether to swap the order of the Yes and No answers.
showCommentArea
Section titled “showCommentArea”- Type:
switch - Default:
—
Specifies whether to display a comment area.
Shared Properties
Section titled “Shared Properties”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.