# Dropdown

![](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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maya-admin.gitbook.io/building-skills/product/node-library/dashboard/dropdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
