function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James76James76 

Rendering 2 pageblocks

I have 2 different checkboxes, which if either/both are true my page block needs to render.

 

I have managed to get this working with one checkbox:

 

<apex:pageBlockSection collapsible="false" columns="2" rendered="{!IF(Contract_Review__c.Product_Certification_Required__c,true,false)}" title="Capability Assessment">

How do I add the additional checkbox?

 

 

 

 

 

 

 

 

 

 

 

 

 

 ">

Best Answer chosen by Admin (Salesforce Developers) 
Shashikant SharmaShashikant Sharma

Use it like using OR function

 

<apex:pageBlockSection collapsible="false" columns="2" rendered="{!IF(OR(Contract_Review__c.Product_Certification_Required__c , SecondCheckBoxField__c ),true,false)}" title="Capability Assessment">

 

All Answers

Shashikant SharmaShashikant Sharma

Use it like using OR function

 

<apex:pageBlockSection collapsible="false" columns="2" rendered="{!IF(OR(Contract_Review__c.Product_Certification_Required__c , SecondCheckBoxField__c ),true,false)}" title="Capability Assessment">

 

This was selected as the best answer
James76James76

Thank you just what I needed.

Shashikant SharmaShashikant Sharma

Your welcome