Welcome to my blog

I have been working with Salesforce for quite a while, so don’t hesitate to contact me if you have any questions or want some advice.

s f

Subscribe
Follow Us
h

Override standard tab to hide recent item and unwanted section

 . Visualforce  . Override standard tab to hide recent item and unwanted section

Override standard tab to hide recent item and unwanted section

You can customize the standard tab to display specific list view and hide unwanted section. You can’t customize the standard tab page using point and click. Need to use Visualforce page to accomplish this functionality.

You can use apex:enhancedlist to customize your tab page on standard and custom object.

Create Visualforcepage called “AccountOverrideTab” using below code

<apex:page action=”{!IF($Profile.Name = ‘System Administrator’, URLFOR(‘/001/o?nooverride=1’), null)}”>
<apex:enhancedList type=”Account” height=”500″/>
</apex:page>

Override “Account” Tab

Screen Shot 2017-03-13 at 8.48.52 PM.png

Only admin user can see the detailed Account Tab like below

Screen Shot 2017-03-13 at 8.42.49 PM.png

all other user can see list view directly without recent item and unwanted sections

Screen Shot 2017-03-13 at 8.58.32 PM.png

For more properties: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_enhancedList.html

Post a Comment