Set Visualforce TAB Focus for a Visualforce Page

9:46 AM

I gotta visualforce page and when i view it, i see that the selected tab is "Home". I do have a Visualforce Tab, and i have a wizard of Visualforce pages from this tab.

The first page shows the Visualforce tab as selected, whereas the other Visualforce pages show the "Home" tab as selected.

So, i had to add this attribute in the apex:page tag and it was solved..

<apex:page tabstyle="My_Page__tab">

Please note that __tab stands for Visualforce tab. For Standard tabs you may just refer them with the objects API Name (Account, Contact, CustomObject__c etc).

0 comments