Switch

A switch element toggles on and off.

Properties

Form item name: This is the name that the encompassing form will use to access the output of the checkbox. See Custom Form for how it's used.

Mode: Change between a switch or checkbox display of the element.

Default value: Set whether the switch will by default be on or off.

Active and Inactive text: Text displayed next to the switch when it is on or off.

Active and Inactive color: Color of the active or inactive text.

Size: Select a size for the element.

Disabled: When toggled on, the user will not be able to change the switch.

See Form Check for data validation.

See Tooltip for tooltip configurations.

Output

The output of a switch is true/false (boolean).

Supported Events

Switch Value: Triggered when a user switches the value.

Supported Actions

Set Value: Set the value of the element (true/false)

Set Validate Result: Set whether the input is valid.

Set Data: Change element data. See Data Store.

Set Loading: Set loading animation. See Set loading animations.

Visit Interactions for more on events and actions.

Last updated