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
Abhilash Gupta 10Abhilash Gupta 10 

How to get PageLayouts in controller based on user profile?

Hi All,

How to get PageLayouts and Recordtypes Settings  in controller based on user profile?
In a VF page,on selecting Profiles i want to display the page layouts and record types settings of that profile.

Yaswanth KothapalliYaswanth Kothapalli
Hi Abhilash,

You can use <apex:detail> Vf tag to implement the same. 
This tag uses the default page layout for the profile of the user viewing the page

Please refer following link for the same:

Also you can check this links for reference:


Yaswanth Kothapalli