Switcher
Switcher is a toggle for a yes-or-no question: "Free entry", "Wheelchair accessible", "Featured on the home page". It's either on or off. The Default value decides which way it starts on new entries.
Switchers pair well with conditional logic. Show Ticket price only when Free entry is off, or show Accessibility notes only when Wheelchair accessible is on.
In the block editor, a switcher can drive a visibility rule, for example to show a "Featured" badge only on featured books.
If the answer has more than two states (yes, no, unknown), use a Radio Buttons or Button Group field instead.
Technical details for LLMs
- Type key:
switcher. Settings:default_value(bool, default false). - Stored:
'1'or'0'; reads accept1,true,yes,onas true. Abilities read: boolean; write: boolean ("1"/"0"accepted). - Never saved: nothing is stored until an entry is saved. Value reads list it in
omittedwith reasonempty; saved off it readsfalse. Writingnullclears it back to never saved. - Condition profile
boolean:is_true,is_false. Alwayswidth: full.