> 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/error-handling.md).

# Error Handling

Using the Progress Indicator's "**Has Error**" attribute, you can visually indicate errors in specific flow steps.

<figure><img src="/files/rOKLg1j71dGh2LKW2gs8" alt=""><figcaption></figcaption></figure>

1. **Connect to a Boolean Formula:** Link the "Has Error" attribute to a Boolean formula variable that evaluates whether a specific condition is met (e.g., a required field is empty).
2. **Customize the Error Icon:** In the "Step Icon" section, you can choose a custom icon to display when an error occurs.
3. **Additional Styling:** Adjust the styling of the error icon to match your preferences.

## Example:

Imagine a flow with a progress indicator and an Input Choice Set component on the second step. If the user doesn't select an option, you want to display an error.

* Create a Boolean formula variable that checks if the Input Choice Set's value is empty.

<figure><img src="/files/0BZp2Xxwzu1oRTlfXgIo" alt=""><figcaption></figcaption></figure>

* Connect this formula to the "Has Error" attribute of the second step in the Progress Indicator.

<figure><img src="/files/qGGFHADhHKwzUEy86OaJ" alt=""><figcaption></figcaption></figure>

* Optionally, choose a custom error icon and adjust its styling.

Now, if the user tries to proceed without selecting an option, the second step in the progress indicator will display the error icon, providing clear visual feedback about the issue.


---

# 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/tutorials/components/progress-indicator/error-handling.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.
