Nov 1, 2011

Fire it in Form close

Sometime we need to do something when a form is being closed without saving. We are given provision to execute a script in loading and saving in both CRM 4.0 and 2011, but not for closing a form. Below is the section that we add usual JavaScript functions for forms events in CRM 2011;

This is a simple script that catch the event and do something for you..

window.onbeforeunload = function() 
    //code goes here

No comments:

Post a Comment