Tuesday, September 23, 2008

How to attach onClose event to MS CRM Entity.


When you work with CRM Forms, if you want to capture / attach a onClose() Event, just use below javascript code.

window.onunload = function() {
//add code here
}

2 comments:

Dmitriy Ilyin said...

hmm... But where i need to place this code?

Dynamics 365 Solution Architect | Azure / ALM/DevOps | Power Platform said...

You can put the code in onload / onsave event of a form.

Cheers,
Ranjit