# Alerts and Confirmations

### Toasts

{% hint style="warning" %}
This documentation is based on openToast plugin. Read more about it [here](https://bubble.io/plugin/opentoast-1583999894901x139148699044937730).
{% endhint %}

In all pages and reusable elements, you find a Custom event called 🔔 TOAST. When triggering it there are two required parameters to fill:

a) Message - this is the text that you want to display to a user.

b) Toast Category - this parameter is linked to the 🔔 Toast Categories option set. By default, you can pick Error, Success, or Info as the type oftoast.

Read more about this option set [here](/framework-elements/option-sets.md#toast-category).

<figure><img src="/files/HRW65nUSHuaP85gmJA1x" alt=""><figcaption><p>Required parameters</p></figcaption></figure>

<figure><img src="/files/IgmQXN6lTpXoNhfNA2Zg" alt=""><figcaption><p>Toast action</p></figcaption></figure>

You can easily customize the toast by adjusting the settings on the action.

<figure><img src="/files/WSiAQ0ZYN58pvmwx7kWa" alt=""><figcaption><p>Default look for the different toast types</p></figcaption></figure>

{% hint style="info" %}
You might consider using the App text for storing the contents of the messages for easier management. Read more about App text in [Bubble manual](https://manual.bubble.io/help-guides/customizing-an-application/language-and-app-communications).
{% endhint %}

### Confirmation popup

For longer or more complex messages it's better to use a dedicated section inside a popup.

Following our principles of using reusable elements, creating a confirmation popup to message the user is very easy.&#x20;

Read how to add new section in 🍿 CRUD POPUP REUSABLE [in this section](/working-with-the-framework/data-and-workflows/working-with-reusables.md#step-by-step-how-to-add-a-new-group).


---

# Agent Instructions: 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:

```
GET https://docs.openbuild.io/working-with-the-framework/alerts-and-confirmations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
