Dropdown
What is it?
A dropdown box containing different options.
When should I use it?
When you need the customer to choose a single option from a list.
Example scenarios
'What is your title?' or 'What is your marital status?'.
Settings
Name | Description |
---|---|
Question text | The label shown next to the field |
Answers | Specify one or more options to display in the question |
Include empty option | If enabled, allows you to configure the text for an option which denotes no selection e.g. Please choose... |
Required | Does the question have to be answered? |
Default answer | The value to initially select |
Help text | Text displayed under the field to guide the customer as to what they should choose |
Show internally | If enabled, this question will be shown on internal forms |
Show publicly | If enabled, this question will be shown on online forms |
Ensuring valid HTML markup
The W3C Specification for HTML5 states
If a
select
element has arequired
attribute specified, does not have amultiple
attribute specified, and has a display size of 1; and if the value of the firstoption
element in theselect
element’s list of options (if any) is the empty string, and thatoption
element’s parent node is theselect
element (and not anoptgroup
element), then thatoption
is theselect
element’s placeholder label option.
Essentially this means that if you make a Dropdown question required, you MUST include an empty option.