# Dropdown List

The available configurations for this field are:

* Label
* Code
* Label
* Label Span
* Input Span
* Read Only
* Items
* Multiple mode
* custom Items

### Label

Label to be displayed alongside the field, if you don't define a label, the input will be displayed anyway

### Code

The path to the context. This path is used to set/get the value from the context

### Label and Input Span

These props are used to determine the space occupied by the label and the input

### Read Only

Disable the field

### Items

Enable adding items to the list, one item at a time.

### Custom items

#### Adding Items to a List with Custom Logic

To enhance your list functionality, leverage custom code. This allows precise control over how items are added. Access the context to apply specific logic tailored to your needs. This approach ensures flexibility and adaptability in managing list items effectively

you have to return an array!

<figure><img src="/files/3FU32O9vu64aAg9TnqqF" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aaQoB5V1Qohss9yGLZlk" alt=""><figcaption></figcaption></figure>


---

# 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://codenull.gitbook.io/dev/configurations/components/forms/fields/dropdown-list.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.
