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
Sami CohenSami Cohen 

Setup VisualPage style not working

Hi,
I'm trying to use the setup style in my  visual page with no success.
 
Code:
<apex:page setup="true"  controller="mycontroller" showHeader="false">

 Any Idea?

  
Ron HessRon Hess
I think showheader= false turns off the standard style sheets by default.

can you turn on standardStylesheets and see if that helps?

standardStylesheets A Boolean value that specifies whether the standard Salesforce stylesheets are added to the generated page header if the showHeader attribute is set to false. If set to true, the standard stylesheets are added to the generated page header. If not specified, this value defaults to false.
Sami CohenSami Cohen
Thanks ron I will Try.
Sami CohenSami Cohen
Unfortunatly, did not help
natemanleynatemanley

Did you every find a solution for this?

I have a VF page that I used a controller extension on and when I set showHeader = false I lose all the styling even when the standardStylesheets = true.  Not sure how SF intended this to work.  The documentation sure makes it sound like it should work.

<apex:page standardController="Opportunity" extensions="QuoteOpptyAudit" action="{!save}" showHeader="false"
        standardStylesheets="true">

 

Sami CohenSami Cohen
not yet