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
JasonH_AllerganJasonH_Allergan 

TAB default view VisualForce page

Im trying to make the first page you see when you click on a tab a newly created VF page.

 

I have changed the "View" to a VF page and that works, but obviously only when you have viewed a record. I would like to change the initial page to my VF page but can't seem to sort it out.

 

Any help PLEASE

 

Jason

bob_buzzardbob_buzzard

It sounds like you want to create a new VisualForce tab and replace the standard tab with that.

aballardaballard

If this is a tab for a standard or custom object you can override the tab page by going to buttons and links setup and defining a VF page to use for the "tab"action.  

JasonH_AllerganJasonH_Allergan

I have tried to add the VF page to the "Stanard Buttons and Links - TAB" and repalce the salesforcepage with a VF page but the VF page that i have created does not apear on the list of available pages.

 

When i changed the "View" from salesforcepage, i could see both my VF pages as available options.

 

 

bob_buzzardbob_buzzard

That's very odd - when I try to override a tab using the custom buttons and links I get offered all of my visualforce pages, not just those that use the standard controller for the object.  

aballardaballard

Most overrides apply to actions that have a specific object selected, hence require a standard controller that is appropriate to that object.

Tab is different because you select the tab before you have selected an object to act on.  So it should allow pages appropriate to that situation.

 

It appears the actual rules are you can have a page with no controller, or with a custom controller or with a standard list controller for the corresponding object type.