> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-combobox-options.md).

# Text Collection to Combobox Options

## Overview

This action converts a collection of text values into a format that can populate the options in the [Avonni Combobox component](/flow/flow-components/combobox.md). This makes it easy to dynamically create dropdown lists within your flows.

***

## How it Helps

Imagine a flow where users must select a country from a list. Instead of manually creating the list of countries in the combobox, this action allows you to use a text collection containing country names to populate the dropdown options automatically.

***

## When to Use It

This action is ideal for:

* **Dynamically populating combobox options.**
* **Creating dropdown lists from data stored in text collections.**
* **Simplifying the configuration of combobox components.**
* **Avoiding manual entry of combobox options.**

***

## Example

To create a dropdown list of product categories:

1. **Create a Text Collection:** Create a Text Collection variable containing a list of product categories (e.g., "Electronics," "Clothing," "Books," etc.).
2. **Configure the Action:** Select the product category collection as the "Source Collection."
3. **Connect to Combobox:** In your flow, connect the output of this action to the "Options" attribute of a combobox component.

***

## Key Considerations

* **Source Collection:** Ensure you have a valid collection of text values you want to use as combobox options.
* **Combobox Component:** This action is specifically designed to work with combobox components. Make sure you have a combobox component in your flow where you want to display the options


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-combobox-options.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
