How To Create Tab Panel In Salesforce

How To Create Tab Panel In Salesforce

By admin March 24, 2014
Blog, Salesforce Development 0

Another question has been asked to our expert Salesforce developers. The question was “how do you create a tab panel within the Salesforce CRM.” In this Salesforce blogpost we will give you step by step instructions on how to achieve this.

When a Salesforce user clicks a tab header, the tab’s associated content displays and then it hides the content of other tabs.

Step1 –

Go to Setup → Build → Develop → Pages

Click on the “New Button” to create a new page:

create a new page

Step2 –
Create a Visualforce page with the name tabbed account or anything else. In the the field type “tabbed account” name the field accordingly as you wish.

Create a Visualforce page

Step3 – Paste this code in the Visualforce editor in your Salesforce:

<apex:page standardController=”Account” showHeader=”true” tabStyle=”account” >

<apex:tabPanel switchType=”client” selectedTab=”tabdetails” id=”AccountTabPanel”>

<apex:tab label=”Details” name=”AccDetails” id=”tabdetails”>

<apex:detail relatedList=”false” title=”true”/>


<apex:tab label=”Contacts” name=”Contacts” id=”tabContact”>

<apex:relatedList subject=”{!account}” list=”contacts” />


<apex:tab label=”Opportunities” name=”Opportunities” id=”tabOpp”>

<apex:relatedList subject=”{!account}” list=”opportunities” />


<apex:tab label=”Open Activities” name=”OpenActivities” id=”tabOpenAct”>

<apex:relatedList subject=”{!account}” list=”OpenActivities” />




Step 4 – Open the Visualforce page in your browser and it should be displayed as the following image below.

Visualforce page

We hope this step by step instruction has been helpful to Salesforce users across the globe. As always if you need any help or assistance with your Salesforce development then please feel free to reach out to the team at Mind Digital Group.

Related Posts

Popular post