Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt
Use this file to discover all available pages before exploring further.
Checkbox inputs are created using the
choiceInput method with the multiple parameter set to true.Overview
Checkboxes allow users to select multiple options from a list of choices. They are implemented using thechoiceInput method with multiple: true.
Creating Checkboxes
To create checkbox inputs, usechoiceInput with the multiple parameter:
Examples
Common Use Cases
Preferences
Collect user preferences where multiple options can be selected.
Features
Let users choose multiple features or add-ons.
Interests
Gather multiple interest categories from users.
Permissions
Configure permission settings with multiple selections.
Key Parameters
Must be set to
true to render checkboxes instead of radio buttons.Array of checkbox options as strings or objects with
label and value.Array of pre-checked values. Values must match the choice values.
Display checkboxes horizontally instead of vertically.
Single Checkbox Pattern
For a single checkbox (like accepting terms), use a single-item choice:Return Value
When submitted, checkbox selections return an array of selected values:Best Practices
Clear labeling
Clear labeling
Make it obvious that multiple selections are allowed:
Reasonable defaults
Reasonable defaults
Pre-select commonly chosen or recommended options:
Group related options
Group related options
Limit the number of options
Limit the number of options
Too many checkboxes can be overwhelming:
- Ideal: 3-7 options
- Maximum: 10-12 options
- If more needed, consider grouping or using a different input type
Related Documentation
choiceInput
Complete choiceInput API reference
pictureChoice
Multiple selection with images