You need to sign in to do that
Don't have an account?

PageBlockSection "collapsible" not working all the time
On some VF pages I build, the collapsible functionality of a pageBlockSection doesn't work. Looking in to it, I find that the js code with the twisty functions (stuff like twistsection() and the like) is not inserted on these failing pages.
It generally happens on my more complex VF pages, with nested pageblock elements. Is this a known bug, and are there things I can do to avoid it?
Hi
The page behaviour seems to happen with:
<apex:pageBlock mode="edit" >
If you have either:
<apex:pageBlock mode="detail" >
or:
<apex:pageBlock >
then
1) There are separators between the rows of fields and;
2) the page sections can be collapsible.
I hope this helps.
Paul
Basically, add this code below your page block: <apex:pageBlockSection title="PBSectionHack" rendered="false"></apex:pageBlockSection>