I have a tab in my salesforce instance named as RelationShip Modules. I want to add custom functionality on this tab, when I click on tab, it should display sub-menu with Modules Names Leads, Accounts, Contacts etc.

When I click on one value i.e. module name like Leads, it should open its list view. then all other functionality should be same. I want to get something like this:

enter image description here

Here when I click on Tab Client Relationships, It should show me menu same as shown in figure above.

Is it possible in salesforce by using Visualforce or any thing else?

Any help will be appreciated.


The tabs can be over-written with a complete new Visualforce page and you can do all sorts of customization in that page BUT I don't see a way of doing the Dropdown sub-menu on the Tab link itself. Because, unfortunately you cannot access the Tab hover properties even if the Tab is over-written by a visaulforce page.

Alternative Solution: You could probably create a new menu dropdown after landing on the Visualforce page only

| improve this answer | |
  • You got my problem very well. Now please tell me, with which apex:(Parameter) I can make a menu dropdown?? And I dont want to show sub-menu onHover the tab, but I want to show sub-menu on click of tab. – Khawaja M. Awais Jun 2 '16 at 7:11
  • Is it like to create a dropdown list? – Khawaja M. Awais Jun 2 '16 at 7:13
  • <apex:tabPanel> is for your inside menu. This should be inside an <apex:page> – sfdcFanBoy Jun 2 '16 at 9:13
  • But this does not fulfill my requirements. Is there any other option? – Khawaja M. Awais Jun 2 '16 at 9:48

You can make your page start with an apex:tabPanel, so the standard Salesforce tabs are the menu and your own tabs in your page act as the sub-menu.

Here is an example:

enter image description here

| improve this answer | |
  • I tried to do this, but it is not working. It gives me error as "Problem: <apex:page> is required and must be the outermost tag in the markup at line 1 column 1 ". – Khawaja M. Awais Jun 2 '16 at 8:41
  • @KhawajaM.Awais The documentation includes a working example. Any Visualforce page must start with an apex:page tag. – Keith C Jun 2 '16 at 9:42
  • Yeah I know, but you asked to do so, So I tried it. – Khawaja M. Awais Jun 2 '16 at 9:50
  • @KhawajaM.Awais OK. I should have said "make your page content (inside an apex:page) start with". – Keith C Jun 2 '16 at 9:53
  • I had done that Already. This is good when we have many sub-tabs in a records detail view. In this context, it was not looking nice. – Khawaja M. Awais Jun 2 '16 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.