An interactive input that can render as a checkbox, a switch, or a button with custom text labels, colors, and layout placements.
- User needs to toggle a binary value (true/false) or select a tri-state value (true/false/null) inside a form.
- Providing toggle switches, checkbox inputs, or toggle button behaviors for boolean form parameters.
Requires a parent Form context (default_form) on the page to resolve the Data Source connection (Element ID and Field Path).
- Form-bound boolean data. The element reads/writes directly to schema fields of boolean type.
- An ‘Accept Terms and Conditions’ mandatory checkbox.
- An ‘Enable Notifications’ toggled switch in a user settings form.
- A tri-state database flag allowing true, false, or explicitly null (unset) values.
- Using for read-only status displays where users should not interactively toggle the state, use boolean_field instead.
- Attempting to configure form Data Source bindings (Element ID and Field Path) before placing a parent default_form element on the page canvas layout.
Use instead
- Boolean Field — The value is read-only output and doesn’t need to be modified by the user.
Pairs well with
- Form — Provides the underlying form context, validation errors, and mutation handlers.
Configure these in the Application Designer property panel. Group headings mirror the editor where possible. Data Source is where the element gets its rows or field binding (a view/query, a connector operation, or a parent form field). References appear only for view-backed sources and map foreign-key ID columns to readable labels from another view.
Binds the checkbox/switch/button value to a boolean field on the parent form's data source.
- Where this element loads its data (view, query, connector, or element).Default: none
Disabled/nullable toggles (expression-capable) plus the default checked state used when there is no data source.
- When true, the control cannot be edited.Example
trueDefault: none - Whether the field may be left empty.Example
trueDefault: none - Initial input state before user interaction. Values can be true, false, or null.Default: none
Label placement, whether to render as switch/checkbox/toggle button, full-width layout for the button variant, and color.
- Label position relative to the input control.Choices
end— Input renders to the right of the label text.start— Input renders to the left of the label text.top— Input renders above the label text.bottom— Input renders below the label text.
Default: none - Transforms the default checkbox visual design into a dynamic toggle switch.Default: none
- Transforms the checkbox design into a clickable selection button.Default: none
- Configuration for full Width.Default: none
- Select theme colors (Default, Primary, Secondary) or switch to expression mode to pass custom string rules.Choices
primarysecondarysuccesserrorwarninginfostandarddefault
ExampleprimaryDefault: none
Inside dataSource: (dataSource)
- Another element on the page whose data backs this field.Default: none
- Path into the source element’s data (property segments).Default: none
- No size of its own: dropped at the platform default of 1 × 1 grid cells and resized on the page.
label— Visual text label identifying the action of the checkbox or switch.
Other parts of your app can read live values from this element in custom expressions:
elements.agreed.<property>
value
boolean
Current input value of this control.
elements.agreed.value
When The live checkbox state in the form, before saving. The usual way to reveal follow-up fields: point a Conditional Container's condition at it.
disabled
boolean
True while the control is locked and cannot be edited.
elements.agreed.disabled
To use one of these, open the property you want to drive on the other element, switch it to expression mode in the Expression Editor, and enter:
| |
Replace agreed with this element’s unique id. Select the element in Application Designer and copy the id chip at the top of the right-hand property panel.
Drag this element into one of these containers:
| |
The DefaultBoolInput is used to reflect a boolean value.
| property | type | description | required |
|---|---|---|---|
placement | string | The label placement. | |
isSwitch | string | Show Switch or Checkbox |
| name | description | required |
|---|---|---|
| label | Text displayed at the placement config. |