
Hi,
We are using Xrm.Page.ui.close() to close entity form on click of ribbon button.
But one scenario, we need to close twice times (click twice) to exit the window, when we are using
Xrm.Utility.openEntityForm on same form.
Any way to close all instances of entity form. Please suggest.
Regards,
Abhishek.
*This post is locked for comments
I have the same question (0)The Close will often cause the previous form to be shown and so if you are opening one record from another, the close will simply move you back to the parent.
You can see similar behaviour when you use the 'Save and Close' button.
There isn't much you can do about this other than using window.top.close to force the browser window to close - however this wouldn't work in the tablet or outlook client.
Hope this helps,