> 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/experience-cloud/properties-panel/interactions/open-confirm.md).

# Open Confirm

Prompt users with a confirmation dialog before an action runs, requiring them to explicitly confirm or cancel to prevent unintended operations.

## Overview

The Open Confirm interaction in Salesforce Experience Cloud is designed to prompt users with a confirmation dialog when an action that requires verification is initiated. This helps prevent unintended operations by requiring user affirmation.

In a component's interaction **Type** dropdown it appears as **Open Confirm Dialog**.

## Configuration

| Name             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`Label`**      | The title of the confirm modal usually posing a question or decision.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`Message`**    | The body text provides details about the action that needs confirmation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **`Variant`**    | <ul><li><code>Header</code> (default): The modal includes a header.</li><li><code>Headerless</code>: The modal does not include a header</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **`Theme`**      | <ul><li><p>Defines the visual styling of the modal. Options include:</p><ul><li><code>Default</code> (default): Standard look and feel.</li><li><code>shade</code>: A slight shadow or overlay.</li><li><code>inverse</code>: Colors are inverted.</li><li><code>alt inverse</code>: An alternative to the standard inverse.</li><li><code>success</code>: Green theme indicating a successful action or state.</li><li><code>info</code>: Blue theme for informational messages.</li><li><code>warning</code>: Yellow/orange theme for cautionary messages.</li><li><code>error</code>: Red theme for error messages.</li><li><code>offline</code>: Indicates lack of connectivity or offline status.</li></ul></li></ul>                                                                                                                                                                                                         |
| **`On Confirm`** | <p>The interactions to run when the user confirms the action. Accepted interactions:</p><ul><li><code>Show Toast</code>: Displays a brief message at the top of the page. <a href="https://docs.avonnicomponents.com/experience-cloud/properties-panel/interactions/show-toast.md">Learn more</a>.</li><li><code>Open Flow Dialog</code>: Initiates a Salesforce flow in a dialog box. <a href="https://docs.avonnicomponents.com/experience-cloud/properties-panel/interactions/open-flow-dialog.md">Learn more</a>.</li><li><code>Open Flow Panel</code>: Runs a Salesforce flow in a side panel. <a href="https://docs.avonnicomponents.com/experience-cloud/properties-panel/interactions/open-flow-panel.md">Learn more</a>.</li><li><code>Refresh All Queries</code>: Re-runs every query data source on the page.</li></ul><p>On components that support a flow panel, <code>Open Flow Panel</code> is offered as well.</p> |

## Example

Imagine you want a partner to confirm before a case is closed from a list's row action:

1. On the row action, set the interaction **Type** to **Open Confirm Dialog**.
2. Set the **Label** to "Close this case?" and the **Message** to "The case can't be reopened from the portal."
3. Leave the **Variant** on `Header` and pick the `Warning` **Theme** so the dialog reads as a caution.
4. Under **On Confirm**, add the interaction that actually closes the case — for example **Open Flow Dialog** running your Close Case flow — followed by **Refresh All Queries** so the list reflects the change.

Nothing runs unless the user confirms: cancelling the dialog ends the chain.

## Important Considerations

* Put the irreversible action behind **On Confirm**, never before the dialog — the interaction only branches on confirmation.
* Phrase the **Label** as the question and the **Message** as the consequence, so the two buttons read unambiguously.


---

# 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/experience-cloud/properties-panel/interactions/open-confirm.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.
