Tech Support > Microsoft Windows > Windows CRM > Close Lead Window after Converting to Opportunity
Close Lead Window after Converting to Opportunity
Posted by Toi Day on April 30th, 2008


Hi All,

Anyone knows javascript code or any code that can do Close Lead Form/Window
once Convert Lead to Opportunity? it means there is only Opportunity window
is open.

Thanks adn Appreciations.

-Toi

Posted by Christoph Maßmann on May 1st, 2008


Hi Toi,

try the following - untested - javascript code in the lead onLoad event:

if ( document.getElementById('_MBconvertLead') != null ) {
convertLead();
window.close();
}

Notice: This is an unsupported modification.

Best regards,
Christoph


"Toi Day" <ToiDay@discussions.microsoft.com> schrieb im Newsbeitrag
news:A36B5C16-BB3B-4F36-BB44-A54ADE65F207@microsoft.com...

Posted by Toi Day on May 5th, 2008


Thanks Chris. I got it.

"Toi Day" wrote: