The switch is a type of input field that allows users to select a binary choice between two options, such as "yes" or "no," "true" or "false," or "on" or "off." This input field type is commonly used in forms and surveys where users are asked to answer a specific question.


Add a title for the input field. This title should be descriptive enough to help users understand what question they are being asked.

Output format

Defines how the switch option is recorded in the data table. There are 2 available options

  • 0 (off) - 1 (on)

  • False (off) - True (on)


"Required" and "Validation by Formula" checkboxes validate input.

When "Required" is enabled, the input field must be filled by users before they can submit the form.

"Validation by Formula" allows you to write your data validation rules with Typescript. Read how Typescript is implemented in Starion here.



Hide the input field if in case it is needed.

This can be useful if you only want to show the field to certain users, if you want to hide it until a specific point in the form, or when you want to use the component to collect the data in the background without displaying it to the user.


Name the component for use with the Typescript.


Last updated