> 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/flow-components/list.md). Agents can also search and read this documentation through its [MCP server](https://docs.avonnicomponents.com/~gitbook/mcp).

# List

The Avonni List shows records or custom items as a list on a flow screen, with item actions, search, filters, sorting, drag-to-reorder and a check list variant.

## Overview

The Avonni List shows Salesforce records or custom items as a list on a flow screen. An onboarding manager ticks off a new customer's setup tasks; a support agent picks the case to work on next. What the user clicks, checks or reorders comes back to the flow as output variables.

The **Variant** sets the shape of the list. It is the first setting in the **Properties** tab.

| Variant              | What it looks like                         | Best for                                       |
| -------------------- | ------------------------------------------ | ---------------------------------------------- |
| **Base** *(default)* | Vertical list, one item per row            | Records with several fields, avatars or images |
| **Single Line**      | Horizontal row with arrows                 | Compact summaries at the top of a screen       |
| **Check List**       | Vertical list with a checkbox on each item | Task lists, pre-visit checklists, multi-select |

> **Example (Base):** A master-detail layout. Click a Contact in the list to see their full record on the right.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FKWKZeSjpDmg3mLCQE567%2Flist-base-master-detail.png?alt=media" alt=""><figcaption><p>Base variant on the left of a two column screen, with the selected contact on the right</p></figcaption></figure>

> **Example (Single Line):** Show today's scheduled account visits in a horizontal strip at the top of a flow screen.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FcK38hZiZM7WJAF5WAZKH%2Flist-single-line.png?alt=media" alt=""><figcaption><p>Single Line variant. The number of items shown at once follows the column settings under Layout</p></figcaption></figure>

> **Example (Check List):** A pre-visit checklist a field rep completes before logging a call.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FmtP7F3bBwq7y65e8P48D%2Flist-checklist.png?alt=media" alt=""><figcaption><p>Check List variant with Strike Through On Check and Show Check Counter both on</p></figcaption></figure>

With **Check List** selected, a **Check List** group appears in the Properties tab:

| Property                    | What it does                                        | Default |
| --------------------------- | --------------------------------------------------- | ------- |
| **Strike Through On Check** | Draws a line through checked items.                 | Off     |
| **Show Check Counter**      | Shows the number of checked items out of the total. | Off     |

Which items start out checked comes from the **Checked** mapping. The mapping alone saves nothing: save the checks with **Update Record(s)** on the **Item Check** interaction, or with an **Update Records** element after the screen. [Build a checklist that saves](https://docs.avonnicomponents.com/flow/tutorials/components/list/build-a-checklist-that-saves.md) walks through the whole setup.

***

## Tutorials

Step-by-step builds that start from a real flow screen and go further than this reference.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create a grid list with images</strong></td><td>Show an account's Contacts as a grid of photo cards, and set the number of columns and the image size.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FWwJwhtnVrlBzKNXnamyf%2Fcover-list-create-a-grid-list-with-images.png?alt=media">cover-list-create-a-grid-list-with-images.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/create-a-grid-list-with-images.md">Create a grid list with images</a></td></tr><tr><td><strong>Show Dates, Times and Links</strong></td><td>Show close dates, amounts and last update times in each user's own format, and turn every deal name into a link that opens the Opportunity.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FIhiyGgE8wF8CddoPIhxO%2Fcover-list-show-dates-times-and-links.png?alt=media">cover-list-show-dates-times-and-links.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/show-dates-times-and-links.md">Show Dates, Times and Links</a></td></tr><tr><td><strong>Act on a Row</strong></td><td>Put Log a Call and Mark as Lost buttons on each deal of a List, a New Opportunity button in its header, and route the Screen Flow on the one clicked.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F4LQUsWAu02itYqgQxxUn%2Fcover-list-act-on-a-row.png?alt=media">cover-list-act-on-a-row.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/act-on-a-row.md">Act on a Row</a></td></tr><tr><td><strong>Vertical List with Actions</strong></td><td>List the Contacts of an account with buttons on each one that open the record or start an action.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FdBet8uT9ua9iXkvJJojs%2Fcover-list-vertical-list-with-actions.png?alt=media">cover-list-vertical-list-with-actions.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/vertical-list-with-actions.md">Vertical List with Actions</a></td></tr><tr><td><strong>Build a Checklist That Saves</strong></td><td>Show a sales rep's open Tasks as a checklist on a flow screen and complete every ticked Task in Salesforce when the rep moves on.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F1Hagg0U4nAcGMY3tNj1u%2Fcover-list-build-a-checklist-that-saves.png?alt=media">cover-list-build-a-checklist-that-saves.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/build-a-checklist-that-saves.md">Build a Checklist That Saves</a></td></tr><tr><td><strong>Create a sortable list</strong></td><td>Show an account's Contacts and let users sort the list on the field they pick.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FXtdwp3Ini0ZUoyEbFdZA%2Fcover-list-create-a-sortable-list.png?alt=media">cover-list-create-a-sortable-list.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/create-a-sortable-list.md">Create a sortable list</a></td></tr><tr><td><strong>How to Reorder Items and Update Records</strong></td><td>Let users drag items into a new order and save that order to a field on each record.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FHKqbPe3Apb93jKpdI2yx%2Fcover-list-how-to-reorder-items-and-update-records.png?alt=media">cover-list-how-to-reorder-items-and-update-records.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/how-to-reorder-items-and-update-records.md">How to Reorder Items and Update Records</a></td></tr><tr><td><strong>Search, Filter and Paginate a List</strong></td><td>Keep a long List usable on a flow screen: pages or scrolling, a search bar, filter menus and sort options, so users reach the right record fast.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FBgoQR0433C16vSc45k0m%2Fcover-list-search-filter-and-paginate.png?alt=media">cover-list-search-filter-and-paginate.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/list/search-filter-and-paginate.md">Search, Filter and Paginate a List</a></td></tr></tbody></table>

All the List tutorials, grouped by goal, are on the [List tutorials](https://docs.avonnicomponents.com/flow/tutorials/components/list.md) page.

***

## Data Source

The **Data Source** decides where the items come from. It sits at the bottom of the **Properties** tab.

| Data Source                                                                                       | Best for                          | When to use                                                       |
| ------------------------------------------------------------------------------------------------- | --------------------------------- | ----------------------------------------------------------------- |
| [**Manual**](https://docs.avonnicomponents.com/flow/component-builder/data-sources/manual.md)     | Fixed items                       | Content that never changes, such as a menu of options             |
| [**Variable**](https://docs.avonnicomponents.com/flow/component-builder/data-sources/variable.md) | A record collection from the flow | Records a Get Records element or an earlier screen already loaded |
| [**Picklist**](https://docs.avonnicomponents.com/flow/component-builder/data-sources/picklist.md) | The values of a picklist field    | Letting users pick from a defined set of values                   |
| [**Query**](https://docs.avonnicomponents.com/flow/component-builder/data-sources/query.md)       | Live Salesforce records           | Loading records without a separate Get Records element            |

Choosing **Query** replaces the collection picker with a query editor: the object, the filter conditions, the sort order and a record cap.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FLwkAwgl3L7XrxAIkzuR5%2Flist-builder-query-source.png?alt=media" alt="" width="320"><figcaption><p>The Query data source in the property editor</p></figcaption></figure>

Images are not supported with the **Picklist** data source. [Understanding Data Sources](https://docs.avonnicomponents.com/flow/component-builder/data-sources/understanding-data-sources.md) compares the two record sources in detail.

### Show a Get Records collection in the List

{% stepper %}
{% step %}

### Load the records

In Flow Builder, add a **Get Records** element before the screen. For example, get **Opportunity** records where **Stage** does not equal `Closed Won`, and store **All records**.
{% endstep %}

{% step %}

### Point the List at the collection

On the screen, select the List and open the Component Builder. At the bottom of the **Properties** tab, set **Data Source** to **Variable** and pick the record collection from the Get Records element.
{% endstep %}

{% step %}

### Map the fields

In **Data Mappings**, set **Label** to `{{Record.Name}}`. Add the fields you want under each item to **Fields**, for example **Amount** and **Close Date**.
{% endstep %}

{% step %}

### Save and test

Save the flow and click **Debug**. The screen shows one item per opportunity, with its name as the label and the mapped fields underneath.
{% endstep %}
{% endstepper %}

***

## Data Mappings

With the **Variable** or **Query** data source, **Data Mappings** tells the List which field goes where on each item. It sits directly under **Data Source**.

> **Example:** For a list of Contacts, map `Name` to **Label**, `Title` to **Description**, and `Email`, `Phone` and `Department` to **Fields**.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FrFpk6DtYJWcJ3NWzhfXn%2Flist-builder-data-mappings.png?alt=media" alt="" width="320"><figcaption><p>Data Mappings on a record collection variable</p></figcaption></figure>

| Mapping                    | What it sets on each item                                                                                          | Default         |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------- |
| **Label** *(required)*     | The main line of text.                                                                                             |                 |
| **Description**            | The line under the label. Rich text: it prints mapped values exactly as stored, without formatting them.           |                 |
| **Checked**                | The field that backs the checkbox in the Check List variant.                                                       |                 |
| **Uncheckable**            | When this field is true, the user cannot toggle the item.                                                          |                 |
| **URL** and **Target**     | Turns the item into a link. **Target** is Self, Blank, Parent or Top.                                              | Self            |
| **Image Source**           | The field holding the URL of the item's image.                                                                     |                 |
| **Annotation Icons**       | Small icons shown against the item, added one at a time.                                                           |                 |
| **Infos**                  | Extra labelled entries under the item, each with an optional URL and target.                                       |                 |
| **Avatar**                 | **Initials**, **Icon Name**, **Image Source** and **Presence Type** (Online, Busy, Focus, Offline, Blocked, Away). |                 |
| **Fields**                 | The fields listed under each item. Dates, times and URLs are formatted for the user here.                          |                 |
| **Key Field**              | The unique identifier of each item. Selection, reordering and the item outputs all rely on it.                     | `{{Record.Id}}` |
| **Image Alternative Text** | Text describing the item's image for screen readers.                                                               |                 |

{% hint style="info" %}
A date in **Description** shows as the stored value, such as `2026-09-12`. Put date, date/time and URL fields in **Fields** instead: they display in the user's locale and time zone, and URLs become clickable. [Show dates, times and links](https://docs.avonnicomponents.com/flow/tutorials/components/list/show-dates-times-and-links.md) covers the full setup.
{% endhint %}

The same section holds four more mappings, used by the features further down this page:

| Mapping             | What it does                                                                                                        |
| ------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **Filters**         | The fields users can filter on.                                                                                     |
| **Search Fields**   | Extra fields the search box looks in.                                                                               |
| **Sortable Fields** | The fields users can sort on.                                                                                       |
| **Sort By**         | The field the list is ordered on. Also the order field that drag-to-reorder saves to with the Variable data source. |

***

## Layout and Display

### Columns

The **Layout** group sets how many columns the items use (1, 2, 3, 4, 6 or 12), per container width.

| Property                               | What it does                                           | Default |
| -------------------------------------- | ------------------------------------------------------ | ------- |
| **Number of Columns**                  | Columns below 480px, and the fallback for every width. | 1       |
| **Number of Columns Small Container**  | Columns above 480px.                                   | 1       |
| **Number of Columns Medium Container** | Columns above 768px.                                   | 1       |
| **Number of Columns Large Container**  | Columns above 1024px.                                  | 1       |

Every width defaults to one column, so a grid never appears on its own. To get three cards per row on a desktop screen, set **Number of Columns Large Container** to 3.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F4Zna0bg747t0CD6WwASd%2Flist-columns.png?alt=media" alt=""><figcaption><p>Three columns on a desktop container, with the Card divider</p></figcaption></figure>

### Dividers

**Divider** separates the items.

| Divider              | What it does                                                      |
| -------------------- | ----------------------------------------------------------------- |
| **None** *(default)* | No line between items.                                            |
| **Top**              | A line above each item.                                           |
| **Bottom**           | A line below each item.                                           |
| **Around**           | A rounded box around each item, like **Card** without the shadow. |
| **Card**             | Each item in its own card.                                        |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FpQnhZeEMaTbUOGjrp90w%2Flist-dividers.png?alt=media" alt="Four lists showing the Top, Bottom, Around and Card dividers on the same three opportunities"><figcaption><p>The same three items with the Top, Bottom, Around and Card dividers</p></figcaption></figure>

### Clicks and item count

| Property                 | What it does                                                                                                                      | Default |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | ------- |
| **Items Clickable**      | Makes the whole item respond to a click. Item labels are styled as links to show it.                                              | Off     |
| **Highlight On Click**   | Keeps the last clicked item highlighted. An Item Click interaction that opens a flow panel highlights it whatever this is set to. | Off     |
| **Show Number of Items** | Shows how many items the list holds. With pagination it can read `5+ items` while more pages remain.                              | Off     |

### Avatar

The **Avatar** group sets how avatars look on every item. What each avatar shows (initials, icon, image, presence) is a Data Mapping.

| Property                    | What it does                                                                                        | Default |
| --------------------------- | --------------------------------------------------------------------------------------------------- | ------- |
| **Icon Name**               | The fallback icon when an item has no image and no initials.                                        |         |
| **Size**                    | X-Small to X-Large.                                                                                 | Medium  |
| **Initials Auto Formatted** | Builds the initials from the item's label.                                                          | Off     |
| **Variant**                 | Circle or Square.                                                                                   | Square  |
| **Position**                | Left, Top Left, Bottom Left, Right, Top Right, Bottom Right, Left of the Title, Right of the Title. | Left    |

### Image

The **Image** group applies when **Image Source** is mapped.

| Property                                  | What it does                                              | Default |
| ----------------------------------------- | --------------------------------------------------------- | ------- |
| **Image Fallback**                        | The image shown when an item's image is missing.          |         |
| **Position**                              | Left, Right, Top, Bottom, Background or Overlay.          | Left    |
| **Size**                                  | Small, Medium or Large.                                   | Large   |
| **Width** / **Height**                    | A fixed image size.                                       |         |
| **Crop Fit**                              | Cover, Contain, Fill or None.                             | Cover   |
| **Crop Position X** / **Crop Position Y** | Which part of the image stays visible when it is cropped. |         |

### Fields Layout

The **Fields Layout** group sets how the mapped **Fields** are laid out: the same four column settings as **Layout**, plus a label style.

| Variant                  | What it looks like                                |
| ------------------------ | ------------------------------------------------- |
| **Standard** *(default)* | Label above the value.                            |
| **Label Hidden**         | Value only.                                       |
| **Label Inline**         | Label to the left of the value.                   |
| **Label Stacked**        | Label stacked above the value, in a compact form. |

***

## Header

The header sits above the items and holds the title and the header actions.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F8kfRFN1dRgOGf1SvEcYP%2Flist-header.png?alt=media" alt="A list header with a title, a caption, an opportunity icon, the item count and New and Refresh buttons" width="480"><figcaption><p>A header with a title, a caption, the item count and two header actions</p></figcaption></figure>

| Property                               | What it does                                                                                                                      |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **Title**                              | Names what the list contains.                                                                                                     |
| **Caption**                            | A short line above the title.                                                                                                     |
| **Avatar**                             | The visual next to the title: **Fallback Icon Name**, **Image**, **Initials**, **Alternative Text**, **Size** and **Variant**.    |
| **Is Joined**                          | Squares off the header's bottom edge and drops its shadow, so the header and the items read as one panel.                         |
| **Actions**                            | Buttons in the header, such as **New**. Each has a **Label**, a **Name**, an **Icon Name** and can be **Disabled** or **Hidden**. |
| **Visible Actions Buttons**            | How many header actions show as buttons before the rest fold into a menu.                                                         |
| **Hide Actions** / **Disable Actions** | Hides or disables all header actions at once.                                                                                     |

> **Example (Is Joined):** A header that reads as a banner over its own items.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FYrdypXSdbrvtgJWFkmzE%2Flist-is-joined-off.png?alt=media" alt=""><figcaption><p>Is Joined off, the default: the header floats above the items</p></figcaption></figure>

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FozroKU8CxdlrAQyZDGN6%2Flist-is-joined-on.png?alt=media" alt=""><figcaption><p>Is Joined on: the header's bottom edge is squared off and a rule separates it from the items</p></figcaption></figure>

***

## Actions

The **Actions** group adds buttons to each item.

| Property                  | What it does                                                                                                             |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **Item Actions**          | Buttons on each item. Each has a **Label**, a **Name** (what the flow reads), an **Icon Name**, and can be **Disabled**. |
| **Visible Item Actions**  | How many item actions show on the row. The rest fold into an overflow menu.                                              |
| **Media Actions**         | Buttons drawn over the item's image.                                                                                     |
| **Visible Media Actions** | How many media actions show on the image.                                                                                |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FLKXdCEJVqZpowPL8iK6m%2Flist-item-actions.png?alt=media" alt=""><figcaption><p>Three item actions with Visible Item Actions set to 2, so the third sits in the overflow menu</p></figcaption></figure>

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FWsqPRKlV3Z8AA4nmVxMf%2Flist-media-actions.png?alt=media" alt=""><figcaption><p>A media action drawn over each item's image</p></figcaption></figure>

### Branch the flow on the action a user clicked

The flow reads an action's **Name**, never its **Label**. Give the action a short, stable name such as `log_call`. In the **Interactions** tab, add an **Item Action Click** interaction and pick the action in **Target Name** (the picker shows its label, **Log a Call**, and stores its name, `log_call`), type [Flow Navigation](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/flow-navigation.md) and **Next Screen**, so the click leaves the screen.

A **Decision** element after the screen then compares **Clicked Item Action Name** with `log_call`, and **Clicked Item Action Item** holds the record the user clicked.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F8INB2i2JjnZJR80hyQvU%2Flist-flow-canvas-decision.png?alt=media" alt="" width="320"><figcaption><p>A List screen feeding a Decision that branches on the action the user clicked</p></figcaption></figure>

[Act on a row](https://docs.avonnicomponents.com/flow/tutorials/components/list/act-on-a-row.md) builds this step by step, with several actions, a header action and the Decision outcomes.

***

## Search, Filter and Sort

### Search

Turn on **Show Search** in the **Search** group to add a search box above the list.

| Property        | What it does                                                 | Default  |
| --------------- | ------------------------------------------------------------ | -------- |
| **Show Search** | Shows the search box.                                        | Off      |
| **Placeholder** | The hint text inside the search box.                         | `Search` |
| **Position**    | Left, Right, Center, Fill, or Panel (inside the side panel). | Left     |

With the **Variable** or **Query** data source, the search looks in the fields used by the **Label** and **Description** mappings, plus every field in the **Search Fields** mapping. To make an email or phone number searchable, add that field to **Search Fields**. The sort menu lists each of the **Sortable Fields** twice, once per direction.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FKFRsdheN39j8rL2oYDfU%2Flist-search-sort.png?alt=media" alt="A deal list with a search box, the item count, Sorted by Close Date and the sort menu open on Amount and Close Date" width="480"><figcaption><p>The sort menu offers each sortable field in both directions</p></figcaption></figure>

### Filters

Filters let users narrow the list down by field values. Which fields can be filtered comes from the **Filters** mapping; the **Filter** group decides how the filters are shown.

{% stepper %}
{% step %}

### Pick the filter fields

In **Data Mappings**, add the fields users should filter on to **Filters**, for example **Stage** and **Close Date**.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FhFwBRJS7llCbBrDHnE6l%2Flist-builder-filter-mappings.png?alt=media" alt="The Data Mappings section with Stage and Close Date in the Filters mapping" width="480"><figcaption><p>Filters, Search Fields, Sortable Fields and Sort By in Data Mappings</p></figcaption></figure>
{% endstep %}

{% step %}

### Choose how the filters are shown

In the **Filter** group, set **Type** to **Horizontal**, **Popover** or **Panel**. With **Panel**, set the panel's side in the **Side panel** group.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fec5H7a53rzXOQdlTaslQ%2Flist-builder-filter-side-panel.png?alt=media" alt="The Filter group set to Panel and the Side panel group with its position and reset label" width="480"><figcaption><p>The Filter group and the Side panel group</p></figcaption></figure>
{% endstep %}

{% step %}

### Save and test

Debug the flow, pick a value in one filter, and check that only matching items stay in the list.
{% endstep %}
{% endstepper %}

| Type                       | How it works                                   | Best for                        |
| -------------------------- | ---------------------------------------------- | ------------------------------- |
| **Horizontal** *(default)* | Filter buttons sit in a row above the list.    | Two or three filters used often |
| **Popover**                | Filters open from a single funnel icon button. | Filters used now and then       |
| **Panel**                  | Filters sit in a side panel next to the list.  | Many filters                    |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F6IApRoW3HXvUoCGv3dGM%2Flist-filter-horizontal.png?alt=media" alt="Stage and Close Date filter buttons above a list, the Stage menu open" width="480"><figcaption><p>Horizontal: the filters sit in a row above the list, and the menu offers only the stages present in the list</p></figcaption></figure>

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F1TRaiun1IzxWjXlWF9L9%2Flist-filter-popover.png?alt=media" alt="A filter button above a list with its popover open on the Stage and Close Date filters" width="480"><figcaption><p>Popover: all filters open from one button</p></figcaption></figure>

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FDnYlxNDUs4upUEsMQQd4%2Flist-filter-panel.png?alt=media" alt="A side panel on the left of a list holding a search box, two filters and a Clear all selections button"><figcaption><p>Panel: filters and search in a side panel next to the items</p></figcaption></figure>

The **Filter** group holds three more settings:

| Property                        | What it does                                                                                                                 | Default   |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------- |
| **Picklist Filter Sort Order**  | Orders a picklist filter's options: **Ascending**, **Descending** or **Default Order of Field**.                             | Ascending |
| **Use Record Picklist Values**  | Offers only the picklist values present in the records, not the field's whole value set.                                     | Off       |
| **Use Cascading Filter Values** | Narrows each filter's options to the records matching the other filters. When on, **Use Record Picklist Values** is ignored. | Off       |

Each filter menu has a mode button that sets how its value is matched. The modes follow the field type and users pick one as they filter: **Equals**, **Not Equals**, **Empty** and **Not Empty** for list, text and picklist filters; **Between** and the comparison operators for number, date and time filters. Checkbox filters always match on **Equals**.

### Side Panel

**Side panel** is its own group. The panel appears when the filter **Type** is **Panel**, when the search **Position** is **Panel**, or both.

| Property               | What it does                                                     | Default                |
| ---------------------- | ---------------------------------------------------------------- | ---------------------- |
| **Position**           | Left or Right.                                                   | Left                   |
| **Closed by Default**  | Opens the screen with the panel closed, so the items come first. | Off                    |
| **Hide Toggle Button** | Hides the button that opens and closes the panel.                | Off                    |
| **Reset Button Label** | The label of the button that clears the filters.                 | `Clear all selections` |

### Sort by Field

Users pick a field from a sort menu and the list reorders on it. The choices come from the **Sortable Fields** mapping, and **Sort By** sets the field the list opens on. With the **Query** data source, the list opens in the order set in the query.

| Property (Sort group)    | What it does                                 | Default         |
| ------------------------ | -------------------------------------------- | --------------- |
| **Sorted Direction**     | **Ascending order** or **Descending order**. | Ascending order |
| **Show Sorted By Value** | Shows the current sort field.                | Off             |

### Drag-to-Reorder

Turn on **Sortable** in the **Sort** group to let users drag items into a new order. Each item gets a drag handle.

| Property                   | What it does                           | Default                 |
| -------------------------- | -------------------------------------- | ----------------------- |
| **Sortable**               | Lets users drag items to reorder them. | Off                     |
| **Sortable Icon Name**     | The drag handle icon.                  | `utility:drag_and_drop` |
| **Sortable Icon Position** | Left or Right.                         | Right                   |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F77vC7ATdjzQTGggHGYrR%2Flist-reorder-handles.png?alt=media" alt=""><figcaption><p>With Sortable on, every item carries a drag handle</p></figcaption></figure>

{% stepper %}
{% step %}

### Give the records an order field

Use a number field the running user can edit, for example a custom `Sort_Order__c` on Account. A formula or roll-up field cannot be saved.
{% endstep %}

{% step %}

### Sort the list on it

With the **Variable** data source, set **Sort By** in **Data Mappings** to `Sort_Order__c`. With **Query**, sort the query on `Sort_Order__c`.
{% endstep %}

{% step %}

### Save the new order

Turn on **Sortable**. In the **Interactions** tab, open **Reorder** and add [Update Records Order](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/update-records-order.md). The option only appears once the list has its sort field.
{% endstep %}

{% step %}

### Save and test

Debug the flow, drag the third account to the top, then run the flow again. The account stays at the top.
{% endstep %}
{% endstepper %}

> **Example:** A rep drags their priority accounts to the top of the list, and the flow saves the new sequence to each Account.

***

## Pagination and Loading

| Property                                                            | What it does                                                                                                 | Default |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------- |
| **Show Pagination**                                                 | Shows page controls at the bottom of the list.                                                               | Off     |
| **Number of Items per Page**                                        | Items per page with pagination on. With pagination off, items loaded at a time. From 1 to 200.               | 100     |
| **Alignment**                                                       | Left, Center or Right.                                                                                       | Left    |
| **First**, **Last**, **Next**, **Previous** button labels and icons | Rename the page controls or change their icons. The last button is always hidden with the Query data source. |         |

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FB5BJ9f3uPrBTfAOafb7f%2Flist-pagination.png?alt=media" alt="A list of five opportunities with page controls centered at the bottom" width="480"><figcaption><p>Five items per page with the page controls centered</p></figcaption></figure>

{% hint style="info" %}
With **Show Pagination** off, the List loads **Number of Items per Page** items at a time behind a **Show More** button. Give the List a fixed **Height** (Style tab, **Size**) and it scrolls inside that height, loading the next batch as the user reaches the bottom. [Search, filter and paginate](https://docs.avonnicomponents.com/flow/tutorials/components/list/search-filter-and-paginate.md) builds both setups.
{% endhint %}

### No Results Message

Set at the bottom of the **Properties** tab, under **Data Mappings**.

| Property                    | What it does                                                        |
| --------------------------- | ------------------------------------------------------------------- |
| **No Results Message**      | Replaces the text shown when no item matches the search or filters. |
| **Hide No Results Image**   | Hides the empty-state image.                                        |
| **Hide No Results Message** | Hides the empty-state text.                                         |

***

## Interactions

[Interactions](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel.md) run when users act on the List. Set them in the **Interactions** tab.

| Interaction            | Fires when                                      | Worth knowing                                                                                    |
| ---------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| **Item Click**         | A user clicks an item.                          | Adding one also makes the items clickable, as **Items Clickable** does.                          |
| **Item Action Click**  | A user clicks an item action.                   | **Target Name** scopes it to one action name.                                                    |
| **Media Action Click** | A user clicks an action on an item's image.     | **Target Name** scopes it to one action name.                                                    |
| **Header Action**      | A user clicks a header action.                  | **Target Name** scopes it to one action name.                                                    |
| **Reorder**            | A user drags an item into a new place.          | Offers **Update Records Order** with the Variable or Query data source once a sort field is set. |
| **Item Check**         | A user checks or unchecks an item (Check List). | Offers **Update Record(s)** with the Variable or Query data source.                              |

[Open Flow Panel](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/open-flow-panel.md) is available on every interaction, and **Refresh Query** on all of them with the Query data source.

***

## Output Variables

The List returns these values to the flow. To use one, reference the List component on the screen from any element after it, for example a **Decision** or an **Update Records** element.

### Item Click

| Output variable       | Type   | What it returns                              |
| --------------------- | ------ | -------------------------------------------- |
| **Clicked Item**      | Record | The record behind the item the user clicked. |
| **Clicked Item Name** | Text   | The **Key Field** value of that item.        |

> **Example:** Use **Clicked Item** to fill a details screen with the contact the user picked.

### Item Actions

| Output variable                   | Type   | What it returns                                   |
| --------------------------------- | ------ | ------------------------------------------------- |
| **Clicked Item Action Name**      | Text   | The **Name** of the action the user clicked.      |
| **Clicked Item Action Item**      | Record | The record of the item the action was clicked on. |
| **Clicked Item Action Item Name** | Text   | The **Key Field** value of that item.             |

### Media Actions

| Output variable                         | Type   | What it returns                                    |
| --------------------------------------- | ------ | -------------------------------------------------- |
| **Clicked Item Media Action Name**      | Text   | The **Name** of the media action the user clicked. |
| **Clicked Item Media Action Item**      | Record | The record of the item whose image was clicked.    |
| **Clicked Item Media Action Item Name** | Text   | The **Key Field** value of that item.              |

### Header Actions

| Output variable                | Type | What it returns                                     |
| ------------------------------ | ---- | --------------------------------------------------- |
| **Clicked Header Action Name** | Text | The **Name** of the header action the user clicked. |

> **Example:** Branch on **Clicked Header Action Name** with a **Decision** element and send `new` to a screen that creates a record.

### Reorder

| Output variable          | Type                        | What it returns                                                          |
| ------------------------ | --------------------------- | ------------------------------------------------------------------------ |
| **Items**                | Avonni List Item collection | The items in their new order.                                            |
| **Sorted Items SObject** | Record collection           | The records in their new order, ready for an **Update Records** element. |
| **Items Serialized**     | Text                        | The new order as a JSON string, for an Apex action.                      |

### Item Check

| Output variable         | Type              | What it returns                               |
| ----------------------- | ----------------- | --------------------------------------------- |
| **Selected Items**      | Record collection | The checked items' records.                   |
| **Selected Item Names** | Text collection   | The **Key Field** value of each checked item. |

> **Example:** Loop over **Selected Items**, set each Task's **Status** to `Completed`, then save them with one **Update Records** element.

### Others

| Output variable     | Type   | What it returns                          |
| ------------------- | ------ | ---------------------------------------- |
| **Number of Items** | Number | How many items the list currently holds. |

### Flow Interaction Output Variables

The List also exposes ten generic output slots. An [Open Flow Dialog](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/open-flow-dialog.md) or [Open Flow Panel](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/open-flow-panel.md) interaction fills them from the flow it launches. See [Flow Interaction Output Variables](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/flow-interaction-output-variables.md).

***

## Styling

The **Style** tab sets the List's look. These are the groups admins use most:

| Group                | Properties worth setting                                                                                                                         |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Size**             | **Height** gives the list a fixed height and makes it scroll inside it. **Width**, **Min Width**, **Max Width**, **Min Height**, **Max height**. |
| **Header**           | **Background Color** and the header's padding.                                                                                                   |
| **Item Spacing**     | **Block Between** sets the gap between items. **Top**, **Bottom**, **Left**, **Right** and **Inline Between** set the rest.                      |
| **Item Label**       | **Text Color**, **Link Color**, **Font Size**, **Font Weight**.                                                                                  |
| **Item Description** | **Line Clamp** caps the description at a number of lines. Color and font settings too.                                                           |
| **Item Background**  | **Color**, **Color Hover**, and **Color Highlight** for the item kept highlighted by **Highlight On Click**.                                     |
| **Item Border**      | **Color**, **Size**, **Style**, **Radius**.                                                                                                      |
| **Checkbox Button**  | Check List only: the checkbox **Size**, **Background Color Active** and **Icon Color**.                                                          |

The tab also holds **Margin**, **Padding**, **Border**, **Item**, **Item Vertical Alignment**, **Item Info**, **Item Fields**, **Item Fields Label**, **Item Fields Value**, **Pagination Buttons**, **Footer**, **Show More Button**, and groups for the flow dialog, flow panel and filters panel. Each sets colors, borders, fonts or spacing for that part of the list.

***

## Troubleshooting

<details>

<summary>The list is empty at runtime but shows items in the Component Builder preview</summary>

The collection behind the List is empty when the screen loads: the Get Records element runs after the screen, or an earlier element cleared the variable. Move the Get Records element before the screen. To check, add a Display Text component showing the collection on the screen before.

</details>

<details>

<summary>A date in the Description shows as 2026-09-12 or with a raw time</summary>

**Description** prints the stored value without formatting it. Map the date or date/time field in **Fields** instead: it displays in the user's locale and time zone. See [Show dates, times and links](https://docs.avonnicomponents.com/flow/tutorials/components/list/show-dates-times-and-links.md).

</details>

<details>

<summary>Only part of the records shows, with a Show More button</summary>

With **Show Pagination** off, the List loads **Number of Items per Page** items at a time, 100 by default. Raise it (200 at most), turn on **Show Pagination**, or set a fixed **Height** in the Style tab so the list loads the next batch on scroll.

</details>

<details>

<summary>Search returns nothing for a value that is on the item</summary>

The search looks in the fields of the **Label** and **Description** mappings and in **Search Fields**. A value shown only in **Fields**, such as an email, is not searched until you add its field to **Search Fields**. Also check that **Show Search** is on.

</details>

<details>

<summary>The list shows one column on a desktop screen</summary>

All four column settings default to 1 on the List. Set **Number of Columns Medium Container** and **Number of Columns Large Container** in the **Layout** group.

</details>

<details>

<summary>Drag-to-reorder works on screen but the order is not saved</summary>

**Update Records Order** only appears on **Reorder** with the Variable or Query data source, once a sort field is set: **Sort By** for Variable, the query's sort order for Query. Manual items have no records to save to. The order field must also be a field the running user can edit, not a formula or roll-up.

</details>

<details>

<summary>Checks are lost when the user leaves the screen</summary>

Map **Checked** to a checkbox field, then save the checks: add **Update Record(s)** on the **Item Check** interaction, or update **Selected Items** with an **Update Records** element after the screen. [Build a checklist that saves](https://docs.avonnicomponents.com/flow/tutorials/components/list/build-a-checklist-that-saves.md) shows both.

</details>

<details>

<summary>Once checked, an item can no longer be unchecked</summary>

**Checked** and **Uncheckable** point to the same field, so checking an item also locks it. That can be deliberate: [Build a checklist that saves](https://docs.avonnicomponents.com/flow/tutorials/components/list/build-a-checklist-that-saves.md) does it so a completed Task cannot be reopened from the screen. If users must be able to undo a tick, leave **Uncheckable** blank or map it to another field.

</details>

<details>

<summary>Selected Items or Clicked Item Name is empty or wrong</summary>

The outputs fill only after the user checks or clicks something, so handle the empty case in a Decision. If they stay empty, check **Key Field**: it defaults to `{{Record.Id}}`, and a field with empty or duplicate values breaks selection.

</details>

<details>

<summary>An Item Click with Navigate does nothing inside a flow opened by Open Flow Dialog</summary>

Inside a flow launched by **Open Flow Dialog**, a **Navigate** interaction on **Item Click** does not open the record. Put the record link in the **URL** mapping instead, for example `/lightning/r/Contact/{{Record.Id}}/view`. Item labels look like links whenever the items are clickable; that styling marks the click, it is not a URL.

</details>

***

## More Tutorials

* [Interactive contact list](https://docs.avonnicomponents.com/flow/tutorials/projects/interactive-contact-list.md): a master-detail screen built on a List of Contacts.
* [Create a grid list with images](https://docs.avonnicomponents.com/flow/tutorials/components/list/create-a-grid-list-with-images.md): columns and item images.
* [Create a sortable list](https://docs.avonnicomponents.com/flow/tutorials/components/list/create-a-sortable-list.md): users sort the list by field.
* [Vertical list with actions](https://docs.avonnicomponents.com/flow/tutorials/components/list/vertical-list-with-actions.md): item actions on a vertical list.
* [How to reorder items and update records](https://docs.avonnicomponents.com/flow/tutorials/components/list/how-to-reorder-items-and-update-records.md): drag-to-reorder saved to Salesforce.
* [Today's accounts to visit](https://docs.avonnicomponents.com/flow/tutorials/projects/todays-accounts-to-visit.md): a Single Line list of the day's visits.
* [Build a reorderable list (video)](https://www.youtube.com/watch?v=u8A8C6oSQy4): the reorder setup in Flow Builder, step by step.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/flow/flow-components/list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
