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
Camila HeitzCamila Heitz 

Different layouts depending on field

Hello everyone,
I'm trying to show two different page layouts for cases depending on a certain field (contact origin). Is this possible?
Thanks!
Daniel B ProbertDaniel B Probert
yes you would need to create a vf page and an apex extension.

then you can use the rendered=

Thanks
Dan
Vinit_KumarVinit_Kumar
Agreed with Dan,

A VF page along with extension would do the work :)

Not sure about your development experience as this would require some custom coding work !!
Ramu_SFDCRamu_SFDC
The below post might help

https://success.salesforce.com/answers?id=90630000000gu09AAA
paul.magpaul.mag
If you're not upto speed on the VF page solution you could try a workflow rule running from the origin field and changing the record type & page layout. Or just create 2,3,4 etc record types and make the case origin field the RT name so when they hit the New case button it asks what type of case they are creating and displays the correct page layout