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
Srinivas223Srinivas223 

conditionally display pageblock sections in vf

Hello All,
I implemented pagination to add opportunity products from the opportunity. In second vf page I am selecting the program model which is a picklist field and containing around 10 values. Based on the value selected i need to display different page block sections in the next page.

i am using this in the third page but not working
 
<apex:pageBlockSection title="Program information" id="Parts" rendered="{!oppty.AProgram_Model__c == 'Parts'}">
            <apex:inputField value="{!oppty.field1}" />            
            <apex:inputField value="{!oppty.field2}"/>            
</apex:pageBlockSection>
Can anyone give some idea on how we can do this.
I appreciate your help 

Thank you.
 
Best Answer chosen by Srinivas223
Srinivas223Srinivas223
I am sorry I used wrong field in the condition. it is working perfect.

Thanks

All Answers

Raj VakatiRaj Vakati
Use  apex:outputpanel and try 
Srinivas223Srinivas223
I am sorry I used wrong field in the condition. it is working perfect.

Thanks
This was selected as the best answer