# 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://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(1585).png" alt=""><figcaption><p>Alert</p></figcaption></figure>

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(1587).png" alt=""><figcaption><p>Error</p></figcaption></figure>

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(1588).png" alt=""><figcaption><p>Info</p></figcaption></figure>

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(1589).png" alt=""><figcaption><p>Loading</p></figcaption></figure>

<figure><img src="https://github.com/lumelinc/PowerTableDocs/blob/main/.gitbook/assets/image%20(1590).png" alt=""><figcaption><p>Warning</p></figcaption></figure>


---

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