Detailed explanation of the Dropdown field in ButterCMS, including input, output, configuration options, and use cases as select field for predefined choices
The Dropdown field provides a way for content editors to select from a list of choices that you predefine when setting up a content schema.
For color selection, we recommend using the Color field instead, but there are cases where you might want to use the Dropdown field—like limiting content creators to a short list of static options.
When setting up your field, each option will have a Label, indicating what the editor sees, and a Value, indicating what is returned via the API. We recommend using kebab-case for the Value, which keeps them human readable.
When you add an option to the field to be selected, it has two parts:
Choice: What the editor sees in the dropdown
Slug: What gets stored and returned via API
Slugs are automatically populated in the dashboard for each choice you add.
Choice: "In Stock"Slug: "in-stock"Choice: "Out of Stock"Slug: "out-of-stock"Choice: "Pre-Order"Slug: "pre-order"
If you don’t like the automatically-created slug, you can edit it, but the dashboard will then slugify your edits so that they can be properly saved and returned by our API. Any uppercase characters will be converted to lowercase, special characters like * are removed, and spaces are converted to hyphens - (kebab-case).
Underscores (snake_case) are allowed, but recommend sticking with hyphens (kebab-case), as it’s easy for your development team to work with, human-readable, and will be consistent with any auto-populated slugs.