Salesforce · Visualforce

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.htm

 

 

 

 

 

One thought on “Override standard tab to hide recent item and unwanted section

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s