When marking complete a custom activity, sometimes we get a pop-up asking us to save unsaved changes. I have tried to locate the plugin/javascript that is causing this popup, but have been unsuccessful. Instead, is there way to add javascript to automatically close this popup if it occurs?
Ex.
var attributes = Xrm.Page.data.entity.attributes.get(); for (var i in attributes) { attributes[i].setSubmitMode(“never”); } Xrm.Page.ui.close();
*This post is locked for comments