Form control: Yes/No Switch

The yesNoSwitch control is a fancy looking checkbox used for saving boolean values.

Tip

Never set the required attribute to true for a field using the yesNoSwitch control. If required, users will only be able to set the option to yes.

Arguments

This control does not accept any custom arguments.

Example

<field name="active" control="yesNoSwitch" />