> 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/tutorials/components/progress-indicator/how-to-change-the-appearance-of-your-progress-indicator-using-a-variable.md). Agents can also search and read this documentation through its [MCP server](https://docs.avonnicomponents.com/~gitbook/mcp).

# Pick a Type and Drive It from a Variable

Compare the six Progress Indicator types with their variants and formats, then drive the type from one variable for every screen.

A five-screen onboarding flow carries a Progress Indicator on every screen. The team wants a Path on all of them, then changes its mind and asks for a vertical list. With the type stored in one flow variable, that change is one edit instead of five.

This page compares the types, variants and formats first, then maps **Type** to a variable.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F9za20HHS2XOhY02gZiRu%2Fprogress-indicator-how-to-change-the-appearance-of-your-progress-indicator-using-a-variable-result.png?alt=media" alt="The six Progress Indicator types showing the same five onboarding steps"><figcaption><p>The same five steps in each of the six types. Bar and Circle show only the percentage.</p></figcaption></figure>

## Before you start

* A screen flow with at least one Progress Indicator and its steps. This page uses the shared onboarding steps: `Account details`, `Contacts`, `Products`, `Review`, `Submit` (values `account`, `contacts`, `products`, `review`, `submit`).
* The [Progress Indicator reference](https://docs.avonnicomponents.com/flow/flow-components/progress-indicator.md) for every other setting.

## Pick the right type

**Type** is the label you pick in the **Properties** tab. The stored value is what a variable must contain to select it.

| Type                    | Stored value          | Looks like                                                                                  | Use it for                            |
| ----------------------- | --------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------- |
| **Horizontal**          | `base`                | Dots or numbers on a line, labels optional                                                  | Most multi-screen flows (the default) |
| **Vertical**            | `vertical`            | A list down the side, with optional sub-steps and buttons                                   | Long flows, steps with content        |
| **Bar**                 | `bar`                 | A progress bar and its percentage, no step names                                            | A compact "how far along" signal      |
| **Circle**              | `circle`              | A progress ring and its percentage, no step names                                           | A small badge in a header or a card   |
| **Path**                | `path`                | Chevron stages, like a Salesforce path (completed stages show a check mark, not their name) | Record stages, such as an Opportunity |
| **Vertical Navigation** | `vertical-navigation` | A side menu, with collapsible sub-steps                                                     | A flow the user moves around freely   |

Each type keeps only the settings it can use. The panel hides the others.

| Setting                         | Horizontal | Vertical | Bar | Circle | Path | Vertical Navigation |
| ------------------------------- | ---------- | -------- | --- | ------ | ---- | ------------------- |
| **Variant**                     | Yes        | Yes      |     |        |      | Yes                 |
| **Format**, **Completed Steps** | Yes        | Yes      |     |        | Yes  |                     |
| **Error Steps**, **Has Error**  | Yes        | Yes      |     |        | Yes  |                     |
| **Enable click for each steps** | Yes        | Yes      |     |        | Yes  | Yes                 |
| **Show Step Number**            | Yes        | Yes      |     |        |      |                     |
| **Show Step Label**             | Yes        |          | Yes |        |      |                     |
| **Step Label Position**         | Yes        |          |     |        |      |                     |
| **Hide Bar Value**              |            |          | Yes |        |      |                     |
| Sub-steps and step actions      |            | Yes      |     |        |      | Yes                 |

**Mark as Complete** works on every type: it marks all steps as done.

### Variant

| Variant    | Stored value | Effect                                           |
| ---------- | ------------ | ------------------------------------------------ |
| **Base**   | `base`       | The default look.                                |
| **Shaded** | `shaded`     | Adds a light gray border to the step indicators. |

### Format

| Format         | Stored value | Effect                                                                                             |
| -------------- | ------------ | -------------------------------------------------------------------------------------------------- |
| **Linear**     | `linear`     | Every step before **Current Step** shows as completed. The default.                                |
| **Non Linear** | `non-linear` | Only the steps listed in **Completed Steps** show as completed. Use it when users can skip around. |

## Steps

{% stepper %}
{% step %}

### Create the type variable

1. In Flow Builder, open the **Toolbox** and select **New Resource**.
2. Set **Resource Type** to **Variable**, **API Name** to `varProgressType`, **Data Type** to **Text**.
3. Set **Default Value** to `path`.

Type the stored value from the table above, in lowercase: `path`, not `Path`, and `vertical-navigation` with its hyphen.
{% endstep %}

{% step %}

### Map Type to the variable

On each screen, select the Progress Indicator. In its **Properties** tab, switch **Type** to **Mapped** and pick `varProgressType` (the picker shows its label, Var Progress Type).

{% hint style="warning" %}
Once **Type** is mapped, the panel shows only **Type**, **Current Step**, **Mark as Complete** and **Data Source**. Settings such as **Variant**, **Format**, **Error Steps** or **Enable click for each steps** are hidden, but the values you set before still apply. Set them first, then map **Type**.
{% endhint %}

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FtlMovW3SNRLpGvpRVSJw%2Fprogress-indicator-how-to-change-the-appearance-of-your-progress-indicator-using-a-variable-type-mapped.png?alt=media" alt="Type property mapped to the varProgressType variable in the Properties tab" width="320"><figcaption><p>Type reads its value from the varProgressType variable.</p></figcaption></figure>
{% endstep %}

{% step %}

### Change the type in one place

Open `varProgressType` and change **Default Value** to `vertical`. Every Progress Indicator mapped to it switches to Vertical at the next run.

The variable can also be set during the flow. An Assignment that sets `varProgressType` to `bar` before a screen shows that screen with a bar.
{% endstep %}

{% step %}

### Save and test

Save the flow and click **Debug**.

* With `path`, every screen shows the five steps as chevron stages.
* With `vertical`, every screen shows them as a list down the side.
  {% endstep %}
  {% endstepper %}

## Troubleshooting

<details>

<summary>The indicator shows Horizontal whatever the variable holds</summary>

The component only accepts the six stored values. Anything else falls back to Horizontal with no error: `horizontal`, `Vertical Navigation` (with a space) or an empty variable all show Horizontal. Check the variable against the **Stored value** column. Upper case is accepted (`Path` works), but the lowercase value is the safe habit.

</details>

<details>

<summary>A setting disappeared after changing the type</summary>

Each type keeps only the settings it supports (see the table above). Show Step Label, for example, exists only on Horizontal and Bar. Switch back to a type that supports it.

</details>

<details>

<summary>Steps cannot be clicked, or errors do not show</summary>

Bar and Circle have no clickable steps and no error state. Use Horizontal, Vertical or Path for both.

</details>

## Related tutorials

* [Clickable steps with a router](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/clickable-steps-with-router.md): the same variable trick, applied to **Current Step**.
* [Sub-steps and step actions](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/sub-steps-and-step-actions.md): what the Vertical type adds.
* [Error handling](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/error-handling.md): show a step in error on Horizontal, Vertical or Path.
* [Steps from a picklist](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/steps-from-a-picklist.md): a Path that follows an Opportunity Stage.


---

# 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/tutorials/components/progress-indicator/how-to-change-the-appearance-of-your-progress-indicator-using-a-variable.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.
