Description:
In this example we explain that how to open
Confirmation Dialog Box in Dynamic CRM using JavaScript. Alternatively, how to
open Confirmation Dialog Box in Dynamic CRM and perform action when click on
the button using JavaScript.
In Dynamic CRM Xrm.Utility library are used to display
Confirm and alert Dialog Box in a form. Here in this example we explain that
how to open confirmation dialog box and when click on ok button then perform
some action or when click on cancel at that time close the dialog box.
So below is the JavaScript code to open Confirmation
Dialog Box in Dynamic 365 CRM.
Function OpenConfirmDialog () {
Xrm.Utility.confirmDialog("Are you sure you want to save this
record?",
function () {
Xrm.Page.data.entity.save();
},
function () {
Xrm.Page.getControl("emailaddress1").setFocus();
});
}
0 comments:
Post a Comment