Skip to main content
A switch component provides users with a simple toggle interface to select between two states (on/off, true/false). When users interact with the switch, the corresponding boolean value is automatically stored in the process instance for use in decisions, business rules, and integrations.
Switch component demonstration

Configuration overview

Configure your switch component using these main sections:

Basic Settings

Process data binding, labels, and switch type

Data & Validation

Default values, datasources, and validators

Behavior

Hide/disable conditions and event handlers

Styling

Visual appearance and platform-specific overrides

Basic configuration

Process data key

The process data key creates a binding between your switch component and the process data, enabling you to reference the switch value in:

Core properties

Purpose: The visible text displayed alongside the switchFeatures:
  • Supports inline Markdown: bold, italic, strikethrough, inline code and links. Links open in a new tab. Headings and lists are not rendered.
  • The label editor has Bold, Italic, Link and Strikethrough buttons
  • Responsive across all platforms
Use Markdown to enhance your labels with bold, italic, or linked text.
Label with Markdown formatting
Choose the visual representation of your switch:
Purpose: Provide additional context or instructionsOptions:
  • Display as regular text below the switch
  • Hide within an expandable info point tooltip
  • Plain text only: Markdown is not rendered in helper text

Data configuration

Default value

Set the initial state of your switch component:
  • Default: The Default value checkbox is cleared, so no default value is set
  • Alternative: Select Default value to start the switch in the “on” position (true)
Choose your default value carefully as it affects user experience and data collection patterns.

Validation rules

Apply these validators to ensure data quality. The Validator type dropdown lists them as requiredTrue, custom expression and custom:
Use case: Force users to accept terms, confirm agreementsBehavior: Switch must be in the “on” position to pass validationError message: Customize the message shown when validation fails
Switch Settings tab with Process data key, Markdown Label editor, Switch Type, Helpertext, Default value checkbox, Validators, Event Handlers and Expressions

Behavior configuration

Hide/disable expressions

Define the switch element’s behavior using JavaScript expressions to control its visibility or disablement:
  • Hide condition: A JavaScript expression that hides the Switch element when it returns a truthy value.
  • Disabled condition: A JavaScript expression that disables the Switch element when it returns a truthy value.

Hide expression example

We can use a rule to hide a switch element if another field has a null value (it is not filled). For example, the “Terms Agreement” switch, which remains hidden until users fill in the “Email” field: Rule used:

Disable expressions

You can use a disabled condition to disable a switch element based on values from other fields or based on permissions.
A disabled condition doesn’t need a matching hide condition: each one works on its own. Hidden and disabled fields are both left out of validation.

Event handlers

Configure interactive behaviors for your switch: Action types available:
  • In a process: Run Local Script, Node Action, Dismiss, Start Project and External
  • In a UI Flow: Run Local Script, Start Process, Start Workflow, External, Navigate To and Dismiss
For detailed event handler configuration, see the Event Handlers guide.

Platform customization

Settings overrides

Customize your switch differently across platforms. Only the label, the helper text (and its info point) and the hide expression can be overridden per platform:
  • Override labels for web-specific terminology
  • Adjust helper text for desktop users
  • Modify hide/show expressions for web workflows
The ⋮ menu next to Web Overrides, listing Copy from Android, Copy from iOS, Copy to Android and Copy to iOS
Override settings can be copied between platforms with Copy from <platform> and Copy to <platform> in the ⋮ menu next to <platform> Overrides, saving configuration time.

Visual styling

Layout options

The Styles tab shows the same layout sections on Web, iOS and Android.
  • start: Label appears before the switch (left side)
  • end: Label appears after the switch (right side)
Fit W (width) options. The default is auto on Web and fill on iOS and Android.
Set the margin (space around the switch) on each side. The switch has no padding setting.
Shown only when the switch sits inside a grid container: Col Span, Row Span, Order and Alignment set how the switch is placed in the parent grid.

Theme customization

Override default styling for complete visual control:
Switch Theme overrides section in the Styles tab with every override category added
Style options:
  • Default state
    • Text [COLOR]
  • Disabled state
    • Text [COLOR]
  • Font [FONT]
  • Text [COLOR]
  • Font [FONT]
  • Helper tooltip
    • Font [FONT]
    • Text [COLOR]
    • Background [COLOR]
    • Icon [COLOR]
  • Text [COLOR]
  • Font [FONT]
  • Background [COLOR]
  • Border [COLOR]
  • Knob [COLOR]
  • Icon color [COLOR]
  • Background [COLOR]
  • Border [COLOR]
  • Knob [COLOR]
  • Icon color [COLOR]
  • Background [COLOR]
  • Border [COLOR]
  • Knob [COLOR]
  • Icon color [COLOR]
  • Background [COLOR]
  • Border [COLOR]
  • Knob [COLOR]
  • Icon color [COLOR]
On iOS, the only state in the Theme overrides menu is Selected state, with Background and Icon color.
Time-Saving Tip: Use Copy from <platform> or Copy to <platform> in the ⋮ menu next to Theme Overrides to reuse styling across platforms without manual reconfiguration.
The ⋮ menu next to Theme Overrides, listing Copy from Android, Copy from iOS, Copy to Android and Copy to iOS

Best practices

Accessibility

  • Provide clear, descriptive labels
  • Use helper text for complex switches
  • Set an accessibility label when the switch has no visible label
See the Accessibility guide for keyboard navigation and screen reader details.

User Experience

  • Choose appropriate default values
  • Provide immediate visual feedback
  • Use consistent switch types throughout your application
  • Consider the context when placing switches

Data Management

  • Use meaningful process data keys
  • Plan for boolean value usage in business rules
  • Consider validation requirements early
  • Document switch behavior for other developers

Common use cases

Last modified on November 13, 2026