Skip to main content

Notifications

Announcements

No record found.

Basic event handling - Onload, Onchange in MSCRM / Dataverse

 Introduction:


Day 3 : Basic event handling - Onload, Onchange in MSCRM / Dataverse


Script :


function onChange(executionContext) { debugger; var formContext = executionContext.getFormContext(); if (formContext.getAttribute("bosch_dayname").getValue() != null) { var alertStrings = { confirmButtonLabel: "Yes", text: formContext.getAttribute("bosch_dayname").getValue(), title: "Throw Alert" }; var alertOptions = { height: 120, width: 260 }; Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then( function (success) { console.log("Alert dialog closed"); }, function (error) { console.log(error.message); } ); } }





This was originally posted here.

Comments

*This post is locked for comments