boolean
The boolean widget translates a toggle switch input to a true/false value.
- Name:
boolean - UI: toggle switch
- Data type: boolean
- Options:
default: acceptstrueorfalse; defaults tofalsewhenrequiredis set tofalserequired: specify asfalseto make a field optional; defaults totrue
- Example:
- {label: "Draft", name: "draft", widget: "boolean", default: true}