function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Below code can fulfill your requirements. Hope this will work for you.
<apex:page showHeader="true" sidebar="true">
<apex:pageBlock id="block1">
<apex:pageBlockSection id="section1" columns="2" collapsible="true" title="Title">
Example Area
</apex:pageBlockSection>
<script>
twistSection(document.getElementById('{!$Component.block1.section1}').getElementsByTagName('img')[0])
</script>
</apex:pageBlock>
</apex:page>
Please mark this as best answer if this solves your problem.
Thank you
Ajay Dubedi
All Answers
Refer below links which has the solution for the same.
https://salesforce.stackexchange.com/questions/87925/how-to-make-a-pageblocksection-collapsible-when-click?rq=1
http://salesforce-stuff.blogspot.com/2011/11/collapse-pageblocksection.html
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya
Below code can fulfill your requirements. Hope this will work for you.
<apex:page showHeader="true" sidebar="true">
<apex:pageBlock id="block1">
<apex:pageBlockSection id="section1" columns="2" collapsible="true" title="Title">
Example Area
</apex:pageBlockSection>
<script>
twistSection(document.getElementById('{!$Component.block1.section1}').getElementsByTagName('img')[0])
</script>
</apex:pageBlock>
</apex:page>
Please mark this as best answer if this solves your problem.
Thank you
Ajay Dubedi