Activity Forums Salesforce® Discussions Can we create a collapsible pageblock table or Html table on a visualforce page? Reply To: Can we create a collapsible pageblock table or Html table on a visualforce page?

  • Abhinav

    Member
    May 30, 2016 at 2:56 pm

    Hi Ajit,

    Please use the below example/code. This will help you.

    <apex:page >
    <apex:pageBlock id="block1">
    <apex:pageBlockSection id="section1" columns="2" collapsible="true" title="Title">
    Example Area
    </apex:pageBlockSection>
    <font color="#FF0000"><script>
    twistSection(document.getElementById('{!$Component.block1.section1}').getElementsByTagName('img')[0])
    </script></font>
    </apex:pageBlock>
    </apex:page>