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
Ken_KoellnerKen_Koellner 

any way to make a pageBlockSection collapsed by default?

I have a page with a bunch of pageBlockSections.  The user would prefer it if they all came up collapsed and then they could expand the ones they wanted.  I set the "collapsible" attribute in the tag to true but there doesn't appear to be any other attribute to control whether it comes up collapsed or not.

 

SteveBowerSteveBower

There isn't.  I've filed an Idea for a collapsed="true"/"false" option on PageBlockSection.  I'd give you the link, but the IdeaExchange seems to be down for maintanence.  Search for "collapsed" and promote it.

 

You could, of course, write some Javascript which executes when the page loads which would find the Element and call the twisty... whatever function to collapse it.   But I'd prefer a parameter.

 

Best, Steve.

TheBootTheBoot

Here's the link to the idea: http://ideas.salesforce.com/article/show/10098227/Add_Collapsedtrue_option_to_ltapexpageblocksection

 

go vote it up people!!