showAlert()
This page provides information about the showAlert() function signature and parameters, which allows you to display a temporary toast-style alert message to the user for precisely 5 seconds. The duration of the alert message can't be modified.

Signature
showAlert(message: string, type: string): Promise
Parameters
Below are the parameters required by the showAlert() function to execute:
Message
The message parameter is a string that contains the text displayed in the alert message. This message is shown to the user in a temporary toast alert. You can also pass dynamic data using JS.
Example:
{{showAlert('Welcome! ' + appsmith.user.username, 'info');}}
Type
The type is an optional parameter that allows you to configure the type of the alert message, which determines the icon displayed in the toast message. It accepts the following string values:
infosuccesserrorwarning
Example:
{{showAlert('Data submitted successfully', 'success');}}