Skip to main content

boolean

A toggle switch for true/false values. Use it for show/hide toggles, feature flags, or any on/off setting.

Common pattern

Combine boolean with an {% if %} block in your template to conditionally show or hide sections.

Properties

PropertyTypeRequiredDescription
type"boolean"YesField type identifier
labelstringYesLabel shown in the builder
defaultbooleanNoDefault value (false if omitted)

Usage

{
"show_section": {
"type": "boolean",
"label": "Show section",
"default": true
}
}

Interactive Preview

Interactive Preview
On
Live Output
{
  "show_section": true
}