Choices and lists
Picking several
A radio takes one answer. Some questions take several: a café may sell snacks, juice and cakes all at once.
checkboxes has the same options as a radio, and lets people tick as many as they like:
{
key: "extras",
type: "checkboxes",
label: "What else do you sell?",
options: [
{ code: "SNACKS", label: "Snacks" },
{ code: "JUICE", label: "Juice" },
{ code: "CAKES", label: "Cakes" },
],
},
Add it below the radio, tick two boxes, and open the Payload tab: the answer is a list, ["SNACKS", "CAKES"].
Like every field, it needs an answer unless it is optional, so at least one box must be ticked. For a long list, type: "select" with multiple: true takes several picks from a dropdown instead.