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
4u4u 

displaying page block sections depending on the field values

AF is an object name it has 3 types of values A, B and C

There are the 3 pageblocksections. I want these three sections to be displayed accordingly 

If it has only of type A then display share section rest two should not be displayed that will be achieved by the below code 

if it has A and B two sections should be displayed 

if it has 2 A's and 3 B's   then 2 A sections should be displayed and 3 B sections should be displayed 

 

<apex:outputpanel id="C">
<apex:pageBlockSection title="Card Info" columns="1" rendered="{!CONTAINS(theRequest.Type__c,'C')}">

 

<apex:outputpanel id="B">
<apex:pageBlockSection title="B Info"
columns="1"
rendered="{!CONTAINS(theRequest.Type__c,'B')}"
collapsible="false">

 

 

<apex:outputpanel id="C">
<apex:pageBlockSection title="C Info"
columns="1"
rendered="{!CONTAINS(theRequest.Type__c,'C')}"
collapsible="false">

 

 

 

can any one help me 

APathakAPathak
You may use apex:repeat along with wrapper class.