Activity Forums Salesforce® Discussions How we can make a button of expand and collapse in Salesforce? Reply To: How we can make a button of expand and collapse in Salesforce?

  • shariq

    Member
    August 21, 2017 at 1:34 pm

    Hi Shubham,

    Apex Page:-

    <apex:page controller ="AccountPlusContact">
    <apex:form>
    <apex:pageBlock>
    <h1>
    Account
    </h1>
    <apex:commandLink value = "{!plus}" action ="{!accountShow}"/>
    <apex:pageBlockTable value="{!accList}" var="acc" columns="3">
    <apex:column value="{!acc.Name}"/>
    </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:form>
    </apex:page>