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
James KentJames Kent 

Custom Button to change the Page Layout

Hi,

 

Is it possible to use a custom button to change a page layout for a contact?  I have a number of related objects and the page is getting long.  Also -- the related objects are only relevant in certain contexts so being able to choose a template would be handy in managing the user's context.

 

Regards,

James

Andy BoettcherAndy Boettcher

Page Layouts are assignable to Profiles and Record Types.  I would advise you to start down the Record Type path.

 

You could then use a button to reassign the Record Type (APEX) which would then auto-flip the Page Layout.

 

-Andy