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
jucuzoglujucuzoglu 

When using the Apex Detail tag how do I select the page layout I want to use?

Is there a way via APEX or VisualForce to select (override) the detail layout when displaying a detail tag in Visualforce?

 

I want to create a specific detail page layout just for this particular page, however I would prefer to build it declaratively rather than having to build it field (or fieldset) by field in Visualforce.

 

 

bob_buzzardbob_buzzard

I don't think that there is a way to achieve this at present - I believe the apex:detail picks up the page layout specific to the record type and profile, but to be honest I'm struggling to find a document that states that.