function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lavanya Ponniah 3Lavanya Ponniah 3 

If i click the apex tab it should navigate to other VF page.How to do that?

Best Answer chosen by Lavanya Ponniah 3
praveen murugesanpraveen murugesan
Lavanya,

Try like this,

<apex:page >
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page: TestCodeOne
  <!-- End Default Content REMOVE THIS -->
  <apex:form>
  <apex:tabPanel>
  <apex:tab/>
  <apex:tab label="test" name="test" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>  //instead of PopupInVFpage use ur page name
  <apex:tab label="test1" name="test1" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>
  <apex:commandButton value="Submit" onTabEnter="window.open('/apex/PopupInVFpage');"/>

  </apex:tabPanel>
  </apex:form>
</apex:page>

Mark this as best answer if its helps.

Thanks.

Praveen Murugesan

All Answers

Boris BachovskiBoris Bachovski
Setup->Create->Tabs->Visualforce Tabs (click create new) and select a Visualforce page
Lavanya Ponniah 3Lavanya Ponniah 3
how to add it in a VF page
AshlekhAshlekh
Hi,

If you want to create a tab like "Account tab", which open your VF page then you have to create a new tab by following below steps.

1)  Click on Setup link at your right upper corner,
2) In left hand side their is a section Setup Area.
3) Click on Create.
4) so final --> Setup --> Create -- Create Tab -- > Click New button in the Visualforce Tabs related list.

Select your visual force Page , and Icon and in label give it a name to your tab,

Below link tell you about tabs in salesforce

https://help.salesforce.com/HTViewHelpDoc?id=dev_tabdef.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=dev_tabdef.htm&language=en_US)

Below link tell you how to create a tab for visualforce page.

https://help.salesforce.com/HTViewHelpDoc?id=creating_custom_object_tabs.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=creating_custom_object_tabs.htm&language=en_US

IF it helps you than please mark it as a solution and ENJOY APEX
praveen murugesanpraveen murugesan
Hi lav,

Pls expalin bit breifly,

Thanks
Lavanya Ponniah 3Lavanya Ponniah 3
I have created one VF page in that page there are 2 tabs using <apex:tab> as Home and Product.So what i want is if click the Product tab it have to open the other VF page.  
praveen murugesanpraveen murugesan
Lavanya,

Try like this,

<apex:page >
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page: TestCodeOne
  <!-- End Default Content REMOVE THIS -->
  <apex:form>
  <apex:tabPanel>
  <apex:tab/>
  <apex:tab label="test" name="test" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>  //instead of PopupInVFpage use ur page name
  <apex:tab label="test1" name="test1" onTabEnter="window.open('/apex/PopupInVFpage');"> </apex:tab>
  <apex:commandButton value="Submit" onTabEnter="window.open('/apex/PopupInVFpage');"/>

  </apex:tabPanel>
  </apex:form>
</apex:page>

Mark this as best answer if its helps.

Thanks.

Praveen Murugesan
This was selected as the best answer