Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Text Collection to Combobox Options

Turn a Text Collection into options for the Avonni Combobox, each text becoming one option, so a list the flow already holds can fill a dropdown.

Overview

This action turns a Text Collection into a collection of options for the Avonni Combobox. Each text becomes one option, used as both its label and its value. The Combobox cannot take a Text Collection directly as a Variable data source, so this action sits in between.

Example: On screen 1 a support agent ticks every case reason that applies. On screen 2, a second Combobox offers only those reasons and asks for the primary one.


Input

Field
Required
What to set

Source Collection

Yes

A Text Collection variable, for example the Value Collection output of another Combobox, or the result of Split Text to Text Collection.

Output

A collection of combobox options (Apex-defined type ComboboxOption). Store it in a collection variable of that type, then select the variable in the Combobox with Data Source set to Variable.

Source Collection
Options in the Combobox (label and value)

New problem, Existing problem

New problem, Existing problem

an empty entry

an option with an empty label

The options have no secondary text, icon, or disabled state. For those, type the options with the Manual data source or use New Combobox Option Collection.


Example

  1. Add an Action element after screen 1 and select Text Collection to Combobox Options.

  2. Set Source Collection to the Value Collection of the Reasons Combobox.

  3. Store the output in a new variable: Data Type Apex-Defined, Apex class ComboboxOption, Allow multiple values (collection) selected.

  4. On screen 2, set the Primary Reason Combobox Data Source to Variable and select that variable.

Build Combobox Options compares this action with the other ways to fill a Combobox.

Last updated

Was this helpful?