web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / DynamicsDevPro / {Know-how}D365 v9 Javascrip...

{Know-how}D365 v9 Javascript - ConfirmDialog with custom labels

ram r Profile Picture ram r
Below is a quick code snippet and output that can be used for customized confirm dialog

Code Snippet:
 var dialogLabelAndText = { confirmButtonLabel: "Proceed", cancelButtonLabel: "Clear & Exit", text: "This is a Confirmation Dialog", title: "Dialog" };  
var dialogOptions = { height: 200, width: 450 };
Xrm.Navigation.openConfirmDialog(dialogLabelAndText, dialogOptions).then(
function (success) {
if (success.confirmed)
Xrm.Navigation.openAlertDialog({ confirmButtonLabel: "Yes", text: "Process completed!" });
else
Xrm.Navigation.openAlertDialog({ confirmButtonLabel: "Yes", text: "Exit and Clear Process!" });
});

Output:


This was originally posted here.

Comments

*This post is locked for comments