Toggle

Yes/no or on/off toggle

The toggle field is a shortcut for a radiobuttons list with yes/no or on/off options.

Example

fields:
  featured:
    label: Is this a featured page?
    type: toggle
    text: yes/no

Note: Do not name the toggle field toggle as this will cause issues.

Available text options are

  • yes/no
  • on/off

The options are automatically translated.

The field content will be 'true' or 'false'

Result

Screenshot Toggle