Skip to content

Toggle

A styled toggle component using the toggle fieldtype.

yaml
handle: toggle_field
field:
  inline_label: 'This is a toggle field'
  type: toggle
  display: 'Toggle Field'
  label_override: 'You accept the [privacy policy](/privacy-policy) and the [terms and conditions](/terms).'
The toggle field example.
The toggle field example.

Additional Settings

Since this component typically displays the label inline, it hides the main label by default and shows the "Inline Label" text instead.

Easy Forms adds a label_override setting that supports Markdown, allowing you to include links as shown in the example above. You can find this setting in the "Easy Forms" section of the field configuration.

Validation

For common use cases like accepting terms & conditions, you should use the accepted validation rule.