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
LloydSLloydS 

Page Layout with Conditional Sections

Is there a fairly easy way to create a Page Layout in cases that will display specific sections based upon criteria such as the content of certain fields within that case? For example, I have 5 products - A, B, C, D, E, and F. I want to display sections 1 and 3 if the product is A or B. I want to display sections 2 and 4 if it's D, E, or F. I can't use Record Types because it's possible that there would be two products selected - A and D, for instance. And in that case it would need display sections for both products.
aballardaballard

The basic approach is generally to define each section with outputPanel or pageBlock or some other container component and then use the rendered attribure to control whether the section is displayed or not.