# 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](https://docs.openbuild.io/framework-elements/option-sets#toast-category).

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FPXUyscWnKVzUkkljaCgW%2FScreenshot%202022-10-10%20at%2016.37.38.png?alt=media&#x26;token=b26fd395-5f69-455e-be53-deae4e2a99d8" alt=""><figcaption><p>Required parameters</p></figcaption></figure>

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FH3xjklXnfMWTezxSPPhF%2FScreenshot%202022-10-10%20at%2016.37.51.png?alt=media&#x26;token=971011c3-a1a6-4c21-862d-65ed5fec5501" alt=""><figcaption><p>Toast action</p></figcaption></figure>

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

<figure><img src="https://3323346004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW4eajJmOk3q8BX2WzhCG%2Fuploads%2FgyYICYmiVOIpB1yap0qC%2FScreenshot%202022-10-10%20at%2016.48.01.png?alt=media&#x26;token=779f7a20-a247-44b0-8d3c-7fb74cbeca81" 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](https://docs.openbuild.io/data-and-workflows/working-with-reusables#step-by-step-how-to-add-a-new-group).
