Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a custom tab . What I want to do is : when I click on that tab, it should open a VF page that I made. How can I do that ?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I managed to solve the situation.

I went to my custom object's tab, on the " Buttons, Links and Actions". I went to the tab line and clicked "Edit". And from there, I was able to override the standard page.

Note : The page used when overriding a tab shouldn't use a standard controller.

share|improve this answer
    
You should probably mark this as the solution then. –  Bob Buzzard Aug 15 at 7:30
    
I have to wait 2 days to do that, but I will. Maybe someone else will find it helpfull –  Bianca Aug 15 at 8:40

If you want the contents of the tab to be the VisualForce page, you need to make a VisualForce tab, not a Custom tab. In setup, VF tabs are at the bottom of the Tabs page where Custom tabs are at the top. I'm pretty sure you can't turn an existing tab from Custom to VF.

According to the Creating Visualforce Tabs documentation.

User Permissions Needed To create Visualforce Tabs: “Customize Application”

You can build Visualforce tabs so that users can access Visualforce pages from within Salesforce.

To create a Visualforce tab:

  1. From Setup, click Create | Tabs.
  2. Click New in the Visualforce Tabs related list.
  3. Select the Visualforce page to display in the custom tab. If you have not already created the Visualforce page, click Create a new page now.

...and then there are several other fields to fill in on the UI.

share|improve this answer
    
I saw this part of the documentation, but there is no option for "create a page now". –  Bianca Aug 15 at 7:27
1  
Looks like you're right about that. I've never previously tried to create a VF Tab for a page that I hadn't created yet. So why not make the VF page first, and then select it in the "VisualForce Page" dropdown? –  Dominic Aug 15 at 7:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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