Configuring the switch element

Switch settings

The available configuration options for this form element are:

General

Properties

  • Label - The label of the Switch

The Label field supports Markdown syntax, enabling you to customize the text appearance with ease. To explore the Markdown syntax and its various formatting options, click here.

  • Helpertext - additional information about the switch element (can be hidden inside an infopoint)

Datasource

  • Default Value - the default value of the switch form field (it can be switched on or switched off)

Validators

The following validators can be added to a switch element: requiredTrue and custom (more details here).

Expressions

  • Hide - JavaScript expression used to hide the Switch element when it returns a truthy value
  • Disabled - JavaScript expression used to disable the Switch element when it returns a truthy value

UI actions

UI actions can be added to the switch element to define its behavior and interactions.

  • Event - possible value: CHANGE
  • Action Type - select the action type

For more details on how to configure a UI action, click here.

Switch styling

The label of the switch can be positioned either as start or end.

For more valid CSS properties, click here.