
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
I have the same question (0)Hello,
Instead trying to close this popup you should resolve source of your issue - something changes attributes on your form. Find what - it can be either JS or Business Rule. I use "Levelup" chrome extension to see such fields. Good luck.