[ad_1]

We quite often use the alert to display a dialog, which contains a message and a button.
In this article, will explain about the syntax and with an example.
Syntax:
Xrm.Navigation.openAlertDialog(alertStrings,alertOptions).then(successCallback,errorCallback);Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
alertStrings |
Object | Yes | The strings to be used in the alert dialog. The object contains the following values: – confirmButtonLabel: (Optional) String. The confirm button label. If you don’t specify the button label, OK is used as the button label.– text: String. The message to be displayed in the alert dialog. – title: (Optional) String. The title of the alert dialog. |
alertOptions |
Object | No | The height and width options for alert dialog. The object contains the following values: – height: (Optional) Number. Height of the alert dialog in pixels.– width: (Optional) Number. Width of the alert dialog pixels.
With the new look enabled, dialog height resizes automatically if you… |
[ad_2]
Source link


