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
MikeGillMikeGill 

Default pageBlockSection to collapsed?

Hi,

 

I am working on some visualforce pages which have many pageBlockSections.

 

I would like to default a number of them to collapsed - is this possible?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
sebcossebcos

Hi Mike,

have you seen this recipe from the Force.com cookbook?

It uses jquery:

http://developer.force.com/cookbook/recipe/show-a-collapsed-pageblocksection-by-default

All Answers

sebcossebcos

Hi Mike,

have you seen this recipe from the Force.com cookbook?

It uses jquery:

http://developer.force.com/cookbook/recipe/show-a-collapsed-pageblocksection-by-default

This was selected as the best answer
MikeGillMikeGill

Thanks - will give it a try