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
Justin Cairns 14Justin Cairns 14 

Email Pop Out Window From Sales Console

Email Pop out Window from Sales Console
I have a custom button on the contact page that I would like to open a new window.  I can get it to work in the normal view but when I'm in a console view it opens inside of the console.  Is there a way to get it to open a new window outside of the console view?  

Here are the details:  
Custom Button on the contact object. 
Display Type = Detail Page Button
Behavior = Execute JavaScript
Content Source = OnClick JavaScript

Here's the part I can't get to work.  Wanting it to open in a new popup window if the button is clicked in the console view.  Currently it opens the standard email screen in the console view.  

{if(inIframe())
{window.open("/_ui/core/email/author/EmailAuthor?p3_lkid={!Account.Id}&retURL=%{!Account.Id}&p24={!Contact.Email}&template_id={!$Label.TAFS_CS_Default_Email_Template_ID}&p3_lkid={!Account.Id}&p3={!URLENCODE(Account.Name)}","Popup","location=1, status=no, resizable=no, directories=no, toolbar=yes, width=1200, height=700")}