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

  • How to hide/show page block table in a Salesforce visualforce page?

  • PRANAV

    Member
    October 12, 2016 at 1:20 pm

    Hi All,

    How to hide/show page block table in visualforce page?

    Thanks

  • 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.

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos