You need to sign in to do that
Don't have an account?
Matt Schetselaar
sforce.console.isInConsole() is not working for me
I have a Visualforce page that I'm building that I've embedded in my Account page. I'm trying to put a button on there that will open another Visualforce page that has a flow embedded in it. I need it to be able to open a subtab if a user is in the console but just run normally if not in the console. I haven't been able to get it to work so I've tried to use sforce.console.isInConsole() and that is returning false each time. This is what I have right now.
Any help on why that isn't working would be great! I think if I can get that to work I should be able to launch the flow in a new tab.
Thanks!
<apex:page standardController="Account" > <A HREF="#" onClick="testIsInConsole();return false"> Click here to check if the page is in the Service Cloud console</A> <apex:includeScript value="/support/console/38.0/integration.js"/> <script type="text/javascript"> function testIsInConsole() { if (sforce.console.isInConsole()) { alert('Is in console'); } else { alert('Not in console'); } } </script> ...more visualforce page </apex:page>
Any help on why that isn't working would be great! I think if I can get that to work I should be able to launch the flow in a new tab.
Thanks!
1) http://amitsalesforce.blogspot.com/search/label/Console
Your code look good to me. DO minior change like below Let us know if this will help you