> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/formula-syntax/scripting-functions/displaytoast.md).

# DISPLAYTOAST

Display custom text as a toast message. Supported message types are alert, error, info, loading, success, and warning.

### Syntax

```javascript
DISPLAYTOAST.<MESSAGE_TYPE>("<MESSAGE_TEXT>")
```

### Arguments

MESSAGE\_TYPE - Select from ALERT, ERROR, INFO, LOADING, SUCCESS, WARNING.

MESSAGE\_TEXT - Custom message to be displayed.

### Example

```
DISPLAYTOAST.ALERT("The data in this report should not be edited")
DISPLAYTOAST.ERROR("Error fetching data")
DISPLAYTOAST.INFO("2024 Financial Statement - Inforiver")
DISPLAYTOAST.LOADING("Report load in progress")
DISPLAYTOAST.SUCCESS("Report load complete")
DISPLAYTOAST.WARNING("Sensitive data, meant for grade L5 and above only")
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FH1G6D0ouYA29WZ9hSWjP%2Fimage.png?alt=media&amp;token=384e0226-82cb-4453-8a36-c2592fe89b8d" alt=""><figcaption><p>Alert</p></figcaption></figure>

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FXKxD5VHN64njylFsRl54%2Fimage.png?alt=media&amp;token=a69ec644-2f28-417e-bbc9-c5c250330293" alt=""><figcaption><p>Error</p></figcaption></figure>

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F6jLb6Q2K4d2jIDVcHuTI%2Fimage.png?alt=media&amp;token=b155bffe-fe7c-4c52-abe0-4e441b868728" alt=""><figcaption><p>Info</p></figcaption></figure>

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fg70Qvn6KPnGfgb1ThbLo%2Fimage.png?alt=media&amp;token=e87c16d9-f40b-4a34-80d4-c2e2aeefcd1c" alt=""><figcaption><p>Loading</p></figcaption></figure>

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FVWNNurT5NjcdUiM90Ti0%2Fimage.png?alt=media&amp;token=92687df1-b176-4704-92b9-8cc4afd8ad24" alt=""><figcaption><p>Warning</p></figcaption></figure>


---

# 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.inforiver.com/formula-syntax/scripting-functions/displaytoast.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.
