> For the complete documentation index, see [llms.txt](https://maya-admin.gitbook.io/building-skills/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maya-admin.gitbook.io/building-skills/product/node-library/dashboard/dropdown.md).

# Dropdown

Adds a dropdown select box to the Maya dashboard.

![](https://1551505950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkaq90Au3F8Kz0qIFzO%2Fuploads%2Fgit-blob-b1c4bd98486a8630d80c349a864f6259e62942c9%2Fdropdown.gif?alt=media)

Multiple value / label pairs can be added as required. If the label is not specified the value will be used for both.

The configured value of the selected item will be returned as `msg.payload`.

Setting `msg.payload` to the value will set the pre-selected choice in the dropdown.

Optionally the **Topic** field can be used to set the `msg.topic` property.

The Options may be configured by inputting `msg.options` containing an array. If just text then the value will be the same as the label, otherwise you can specify both by using an object of `"label":"value"` pairs :

`[ "Choice 1", "Choice 2", {"Choice 3":"3"} ]`

If the "Allow multiple selections" output option is enabled - the result will be returned as an array instead of a string.
