# Dropdown

<figure><img src="/files/JRI6RTTdHvfYhH7zh8nz" alt="" width="563"><figcaption></figcaption></figure>

## Input combo type dropdown.list

Displays a drop-down menu that lets users select one option.

## Usage example

```xml
<form>
    <inputcombo
        type='dropdown.list'
        id='variable_from_list'
        label="Select a variable"
        description="Select a common variable from all devices"
        placeholder='Choose an option'
        value="temperature"
    >
       <menu>
            <item id='temperature'>Temperature</item>
	    <item id='humidity'>Humidity</item>
	    <item id='iluminance'>Iluminance</item>
	    <item id='magnetic_flux'>Magnetic flux</item>
      </menu>
    </inputcombo>

</form>
```

## Properties

* `id`: Unique identifier for this field
* `label`: Header text
* `description`: Short descriptive text
* `placeholder`: Placeholder text
* `shape`: Used to align the label and the input field. Allowed values:
  * `compactVertical`
  * `wideVertical`
  * `wideHorizontal`
* `value`: Sets a default value from the defined menu items. This value must match the `id` of one menu option. Otherwise, no default value is set and the placeholder is displayed.

## Option properties

`id`: Unique identifier for the selected value.


---

# 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://dev.ubidots.com/dashboards-and-widgets/custom-ui/input-combo/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.
