
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
Label
Label
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

Switch Type
Switch Type
Choose the visual representation of your switch:
Helper Text
Helper Text
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)
Validation rules
Apply these validators to ensure data quality. The Validator type dropdown lists them asrequiredTrue, custom expression and custom:
- requiredTrue
- custom expression
- 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

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
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:- Web Applications
- Mobile Apps
- Override labels for web-specific terminology
- Adjust helper text for desktop users
- Modify hide/show expressions for web workflows

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.- Web Styling
- iOS Styling
- Android Styling
Label position
Label position
- start: Label appears before the switch (left side)
- end: Label appears after the switch (right side)
Sizing
Sizing
Fit W (width) options. The default is auto on Web and fill on iOS and Android.
Spacing
Spacing
Set the margin (space around the switch) on each side. The switch has no padding setting.
Grid Child
Grid Child
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:
Label
Label
- Default state
- Text [COLOR]
- Disabled state
- Text [COLOR]
- Font [FONT]
Helper
Helper
- Text [COLOR]
- Font [FONT]
- Helper tooltip
- Font [FONT]
- Text [COLOR]
- Background [COLOR]
- Icon [COLOR]
Error
Error
- Text [COLOR]
- Font [FONT]
Unselected state
Unselected state
- Background [COLOR]
- Border [COLOR]
- Knob [COLOR]
- Icon color [COLOR]
Selected state
Selected state
- Background [COLOR]
- Border [COLOR]
- Knob [COLOR]
- Icon color [COLOR]
Disabled unselected state
Disabled unselected state
- Background [COLOR]
- Border [COLOR]
- Knob [COLOR]
- Icon color [COLOR]
Disabled selected state
Disabled selected state
- 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.

Best practices
Accessibility
- Provide clear, descriptive labels
- Use helper text for complex switches
- Set an accessibility label when the switch has no visible label
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

