Activity › Forums › Salesforce® Discussions › How to hide/show page block table in a Salesforce visualforce page? Tagged: Apex PageBlockSection, pageBlockTable, Salesforce Visualforce Page Salesforce® Discussions How to hide/show page block table in a Salesforce visualforce page? Posted by PRANAV on October 12, 2016 at 1:20 PM Hi All, How to hide/show page block table in visualforce page? Thanks Avnish Yadav replied 7 years, 7 months ago 3 Members · 2 Replies Apex PageBlockSectionpageBlockTableSalesforce Visualforce Page 2 Replies 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, [adinserter block='9'] 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. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me