CRM 2013 form will not reload the entire form after saving the record this is by design.
so as a work around is to use "Xrm.Utility.openEntityForm" provided in SDK which is supported in all browsers.
Modified on Field in CRM will always be updated on CREATE and UPDATE of the record so we will register a function on Change of Modified on field.
function modifiedon_onChange() {
reloadFormAfterSave();
}
function reloadFormAfterSave() {
setTimeout(function() {
Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());
}, 500);
}
so as a work around is to use "Xrm.Utility.openEntityForm" provided in SDK which is supported in all browsers.
Modified on Field in CRM will always be updated on CREATE and UPDATE of the record so we will register a function on Change of Modified on field.
function modifiedon_onChange() {
reloadFormAfterSave();
}
function reloadFormAfterSave() {
setTimeout(function() {
Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());
}, 500);
}
No comments:
Post a Comment