# Text Collection to Dual Listbox Options

## Overview

This action converts a collection of text values into a format ready to use as options in the [Avonni Dual listbox component](/flow/flow-components/dual-listbox.md). Dual listboxes allow users to move items between two lists, making selecting or categorizing items easy.

***

## **How it Helps**

Imagine you have a flow where users must select their preferred communication channels from a list of options. This action lets you take a text collection containing those channels (e.g., "Email," "Phone," "SMS") and automatically populate the options in a dual listbox. Users can then easily move their preferred channels to the selected list.

***

## **When to Use It**

This action is ideal for:

* **Dynamically populating dual listbox options.**
* **Creating interactive selection lists.**
* **Allowing users to categorize or filter items.**
* **Simplifying the configuration of dual listbox components.**

***

## **Example**

To create a dual listbox for selecting product features:

1. **Create a Text Collection:** Have a Text Collection variable containing a list of product features (e.g., "GPS," "Bluetooth," "Camera").
2. **Configure the Action:** Select the product feature collection as the "Source Collection."
3. **Connect to Dual Listbox:** In your flow, connect the output of this action to the "Options" attribute of a dual listbox component.

***

## **Key Considerations**

* **Source Collection:** Ensure you have a valid collection of text values you want to use as dual listbox options.
* **Dual Listbox Component:** This action is designed to work with dual listbox components. Ensure you have a dual listbox component in your flow where you want to display the options.
* **User Interaction:** Consider how you will handle user interactions with the dual listbox (e.g., saving the selected options, processing the categorized items)


---

# 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://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-dual-listbox-options.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.
