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
sujasuja 

Displaying pages based on profiles

Hi,

 

We have a requirement:

We need to display Visual Force page on click of Account tab only for system admin profile.

Where as for other profiles, we need to display Standard Account page layout.

 

thanks in advance

Arunkumar.RArunkumar.R

Yes it's possible,

 

<apex:page rendered="{!IF($Profile.Name =='System Administrator', true , false)}">

 

----------- your content--------------

 

 

</apex:page>

 

If you found this answer helpful to you... Please accept this as a Solution and  give kudos by clicking on the star icon.

 

Thanks and Regards,

Arunkumar.R | Salesforce Certified Developer