function QuickViewFormTest() {
var quickViewControl = Xrm.Page.ui.quickForms.get("related_contact");
if (quickViewControl != null) {
setTimeout(function () {
quickViewControl.refresh();
}, 500);
}
}
You might be thinking, why there is a timeout of 500 milliseconds. The reason is when you change the contact lookup OOB it fires a refresh of the quick view form which unfortunately does not refresh. This custom code fires another re-fresh just after that
which loads the grid