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

how to assign different page layout or record type to the users based on a condition

Dear All,


Is it possible to assaign different page layout or record type for the user based on the condition.


Ex: If the checkbox field value in the custom object is true, then user xxxx page layout  or record type should be x . And if the checkbox value is false user xxxx page layout or record type should be y.


 If yes, kindly let me know how we can do this??  


Thank you.



You can alter the record type in Apex Code, by way of a trigger. Or in a Visualforce page's controller. Your question is vague enough that I can't really provide a concrete example for you.