- Description:
⚠️ DEPRECATED: This key is deprecated. If you want to prevent empty values, we recommend setting
_inputs.*.options.requiredtotrueinstead.This key toggles whether CloudCannon will accept empty values, and pre-select the first option if opened with an empty value.
Setting this key to
truewill allow CloudCannon to accept empty values.- Appears in:
└── _inputs └── * ├── Select Input │ └── options │ └── allow_empty ├── Multiselect Input │ └── options │ └── allow_empty ├── Choice Input │ └── options │ └── allow_empty └── Multichoice Input └── options └── allow_empty- Type:
boolean- Examples:
In this example, CloudCannon will accept empty values for a Select Input.
Copied to clipboard_inputs: category: type: select options: values: - Blog - News - Events allow_empty: true{ "_inputs": { "category": { "type": "select", "options": { "values": [ "Blog", "News", "Events" ], "allow_empty": true } } } }