How to disable the pop-up ("There are unsaved changes in this window...") that comes after calling Xrm.Page.ui.close()? I'm calling this function straight after Xrm.Page.data.entity.save() so all the fields are saved.
This solution setSubmitMode("never") does not work:
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