You need to sign in to do that
Don't have an account?
Ken_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.
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.
Here's the link to the idea: http://ideas.salesforce.com/article/show/10098227/Add_Collapsedtrue_option_to_ltapexpageblocksection
go vote it up people!!