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
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.