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
Chris987654321Chris987654321 

Disable the sidebar in your VF Pages

Sorry for the dumb question, does anyone know off-hand where the setting is to disable the sidebar in your VF Pages? I think I remember seeing a setting that turns off the sidebar in my VF Pages but I cannot seem to find it. I would do more research but I have a demonstration tomorrow morning.

 

Thank you for any information you may have.  

Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf
Right up in your apex:page tag, set sidebar="false".

All Answers

werewolfwerewolf
Right up in your apex:page tag, set sidebar="false".
This was selected as the best answer
Chris987654321Chris987654321
Thanks so much! I can't believe I forgot that. I guess that's what happens when you work 14 hour shifts :)
jigounovjigounov

This is a way to have sidebar on the page but hide it:

(so you could show it later without leaving the page)

 

  var previousOnload = window.onload;       
  window.onload = function() {
    if (previousOnload) {
      previousOnload();
    }
    document.getElementById('sidebarDiv').style.display = 'none';
    document.getElementById('bodyCell').className = '';
  }