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
nagalakshminagalakshmi 

sforce.console.isInConsole() is not working

Hi,

i want to make the header = false for only service console from vf page. Used below code. But not working.

<apex:page controller="SVC_SelectDefectTypeController" title="Engineering Defect Creation" tabStyle="Engineering_Defect__c">
<apex:includeScript value="/support/console/30.0/integration.js"/>
 <script type="text/javascript"> 
     window.onload = function() {
          if (sforce.console.isInConsole()) {
              document.getElementById('AppBodyHeader').style.display = 'none';
          }
     };
</script>

</apex:page>

If i remove  this line if(sforce.console.isInConsole())  from code, it is working fine for both. But i want to make header false for only service console app. Please help me how to solve this.

Thanks,
Lakshmi
Amit Chaudhary 8Amit Chaudhary 8
Hi nagalakshmi

Please check below blog for console related code. I hope that will help u
http://amitsalesforce.blogspot.in/search/label/Console
http://amitsalesforce.blogspot.in/2015/03/how-to-open-new-record-inside-console_3.html

Please let  us know if that will help u

Thanks
Amit Chaudhary