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
rmarma 

Override detail page based on profile

Need to override the standard detail page (view) of a custom object with a VF page for users in certain profiles. Tried following the example in cook book here

However I am getting a URl not found eror. For some reason the redirect URL is not working right. Need some pointers or a sample code. appreciate any kind of help. 

 

sivaextsivaext

hi

 

i think your requirement possible with rendered tag.

 

<apex:pageBlock title="page load" rendered="{!if($user.profile=='system admin',pageurl,pageurl)}">

 

 pageurl means another vf page.

sp08830sp08830

Thanks for the reply.

Basically I wanted to conditionally redirect users to VF page. Condition being user profile.  

meaning some users see VF page and seom see standard page.