Activity Forums Salesforce® Discussions How to hide/show page block table in a Salesforce visualforce page?

  • Satyakam

    Member
    January 23, 2017 at 6:35 am

    Hi Pranav,

    My visualforce page having 2 sections(Account and Contacts). If the Account having any contacts need to display Contacts section other wise display only Account section.

    Used following statement in VFP:

    <apex:pageBlockSection  rendered="{!IF(contactsLst.size>0, true, false)}">

    Thanks,

  • Avnish Yadav

    Member
    September 29, 2018 at 11:58 pm

    Hey Satya,

    You can also use this <apex:pageBlockSection rendered="{!NOT(contactsLst.empty)}">

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos