---
title: "lfDialogMessage"
canonical: "https://support.appfire.com/space/PSJ/15488843/lfDialogMessage"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | lfDialogMessage(message [, messageClass, messageSize]); | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Displays a global message in a dialog box.

Displays a global message in a dialog box.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| message | String | Yes | The message to display. |
| messageClass | String | No | Message type. Options are ERROR, WARNING, SUCCESS, and INFO (default). |
| messageSize | String | No | Message size. Options are SMALL, MEDIUM (default), and BIG. |

## Return Type

**None**

## Example

The message will be displayed like in the image below.

```javascript
lfDialogMessage("This is a dialog message!", "WARNING", "BIG");// where message = "This is a dialog message!" and messageClass = "WARNING" and messageSize = "BIG"
```

> ⚠️ If the messageClass is not specified an info message will be displayed as default The **messageClass** parameter can be:
> ⚠️ 
> ⚠️ - **ERROR**: will display an error message
> ⚠️ - **WARNING**: will display a warning message
> ⚠️ - **SUCCESS**: will display a success message
> ⚠️ - **INFO**: will display an info message
> ⚠️ - **HINT**: will display a hint message.
> ⚠️ 
> ⚠️ .

## See also

> Macro (contentbylabel)