Type key: dropdown. Renders a select control that opens a list from which respondents pick one option. In the editor this is the Dropdown block.
A question with options: the question rules and option rules apply, and it can sit in a layout row column.
Meta fields
Section titled “Meta fields”The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the dropdown tab.
Example
Section titled “Example”{ "public_id": "nCty", "sort_order": 1, "type": "dropdown", "meta": { "question": "<span>Country</span>", "placeholder": "Choose a country", "select_options_data": [ { "value": "de", "label": "Germany" }, { "value": "nl", "label": "Netherlands" }, { "value": "pl", "label": "Poland" } ], "validation": { "required": true } }}Defaults and rules
Section titled “Defaults and rules”default_valueis one optionvalue.