An on-or-off choice rendered as a switch, with labels and colours you choose.
"Type": "toggle"{{ toggle }}
— the Liquid object a template reads from this field.
Accepted in addition to the shared properties every definition carries.
| Property | Required | Description |
|---|---|---|
OnLabel |
— | Text beside the switch when it is on. |
OnValue |
— | Value stored when it is on. |
OnColor |
— | Colour of the switch when it is on. |
OffLabel |
— | Text beside the switch when it is off. |
OffValue |
— | Value stored when it is off. |
OffColor |
— | Colour of the switch when it is off. |