12 Switch

yufei li 于 2025/02/28 07:13 最后修改

Feature Overview

The Switch widget is used for setting a binary state toggle, such as enabling or disabling.

Use Cases

It is suitable for scenarios like setting whether to enable a feature or to activate/deactivate a configuration.

Setting Method

Click on the Switch widget in the basic fields or drag and drop the Switch widget onto the canvas to complete the addition.

Widget Properties

Widget PropertiesSettings OptionsSettings Options Description
Basic PropertiesNameUsed to distinguish different widgets.
Display NameUsed to control whether the widget name is displayed when filling out the form.
WidthUsed to control the display width of the current widget when filling out the form.
Help TextA question mark hover appears when filling out the form, which can display help text.
Permissions

Visibility Permissions: Visible, Conditionally Visible, Invisible;

Edit Permissions (precondition: visibility permissions): Editable, Non-editable;

Mandatory Permissions (precondition: edit permissions): Mandatory, Conditionally Mandatory, Not Mandatory;

Field permissions only take effect in non-process forms;

Additionally, conditionally visible and conditionally mandatory permissions take effect in both process and non-process forms.

Special PropertiesDefaultTabs
Enable textUsed to allow users to define the text displayed when the switch is turned on; this field is not required.
Disable textUsed to allow users to define the text displayed when the switch is turned off; this field is not required.