function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VikasVikas 

I have opened a pop-up from the sections label in a layout of Lead, but not 100% working

Hi,

I want to open a pop-up from the sections label in a layout of Lead. My section name is "Lead Qualification Guidelines", this opens popup, but gives and error.

Below is the code, can anybody help?

<A style="CURSOR: move" href="javascript:window.open('http://www.sforce.com','help','screenX=0,screenY=0,location=no,width=400,height=600,scrollbars=no,toolbar=no');window.opener.stop();" originalBGColor>Lead Qualification Guidelines</A>

I may be wrong in window.opener.stop().

Please help me to resolve this.

DevAngelDevAngel

Hey Vikas,

Put some context about what you are doing around your post and we can help.  Explain what you are doing, where, why and how.  From your post I don't know if you are screen scraping, running a wil, an scontrol, a separate site altogether.

 

Thanks.

VikasVikas

During the New Lead Entry Page, I want to popup few guidelines for the user.

As you know Web Links are not available on Edit/New mode of any entity, I tried to utilize the section names instead. So in the Page Layout Edit mode, I nameed the section as

<A href="javascript:window.open('http://www.sforce.com','help','screenX=0,screenY=0,location=no,width=400,height=600,scrollbars=no,toolbar=no');window.opener.stop();" originalBGColor>Lead Qualification Guidelines</A>

Here the section name is "lead qualification guidelines", the page opening sforce.com will be my custom page at my web server.

Objective is to have lead entry guidelines duirng the new and edit mode of the lead.

Hope all this helps.

DevAngelDevAngel

OK, I understand.

IE does not support window.stop().  You will need to use

document.execCommand('stop') instead.  What this means is that you will need to determine the browser within your javascript snippet in the href.

<A href="javascript:window.open('http://www.sforce.com','help','screenX=0,screenY=0,location=no,width=400,height=600,scrollbars=no,toolbar=no');document.execCommand('Stop');" originalBGColor>Lead Qualification Guidelines</A>