+ Start a Discussion
Alex ShAlex Sh 

Display different visualforce section depending on selected type

I have VF page with two pageBlockSections. I need to display it in Object page. But when Object type ->  'Single', only first pageBlockSections from VF page should be displayed in Object page. How can I do this?
Thanks!
Best Answer chosen by Alex Sh
Prakash NawalePrakash Nawale
Hi Alex,

You can use rendered atribute to hide and show sections conditionally

<apex:pageBlockSection rendered="{!bjectType='Single',true,false}">
    First Section componets
</apex:pageBlockSection>
 
Let me know this will help or not.

All Answers

Prakash NawalePrakash Nawale
Hi Alex,

You can use rendered atribute to hide and show sections conditionally

<apex:pageBlockSection rendered="{!bjectType='Single',true,false}">
    First Section componets
</apex:pageBlockSection>
 
Let me know this will help or not.
This was selected as the best answer
Alex ShAlex Sh
Thank you! 
That works. It was so easy.