Skip to main content
Amber Gillis (K2M) が「#Security」で質問
Hi- We have a VF page for all users, but we want to have a standard page layout available for a specific profile (not the VF page).  We assigned the basic SF page layout to the correct profile and disabled the VF page layout for that profile.  Users still cannot see the basic SF page layout.  How do I enable this for them to see the basic layout (not VF page)?
3 件の回答
  1. 2013年11月14日 16:28
    You can conditionally show the standard page or your custom page based on the current user by detecting the User info in your custom VF page controller, then redirecting to the same URL ('edit' for example), but add the nooverride=1 parameter to the URL.

     

    For example, if you have a custom VF page on the Account Edit screen, when someone hits Edit, they get a URL like this:

     

    https://na15.salesforce.com/001i000000PfMas/e?retURL=%2F001i000000PfMas

     

    which will display your custom VF page.

     

    if your page controller builds a URL like this:

     

    https://na15.salesforce.com/001i000000PfMas/e?retURL=%2F001i000000PfMas&nooverride=1

     

    then the standard Account Edit page will be displayed. 
0/9000