Newer Version Available
Overriding Buttons, Links, and Tabs with Visualforce
You can override the behavior of standard buttons on record detail pages. You can also override the tab home page that displays when a user clicks a standard, custom, or external object tab.
- Click Edit next to the button or tab home page you want to override.
- Pick Visualforce Page as an override type.
- Select the Visualforce page you
want to run when users click the button or tab.When overriding buttons with a Visualforce page, you must use the standard controller for the object on which the button appears. For example, if you want to use a page to override the Edit button on accounts, the page markup must include the standardController="Account" attribute on the <apex:page> tag:
1<apex:page standardController="Account"> 2<!-- page content here --> 3</apex:page>When overriding tabs with a Visualforce page, you can select only Visualforce pages that use the standard list controller for that tab, pages with a custom controller, or pages with no controller.
When overriding lists with a Visualforce page, you can select only Visualforce pages that use a standard list controller.
When overriding the New button with a Visualforce page, you have the option to skip the record type selection page. If you choose this option, new records you create aren’t forwarded to the record type selection page. Salesforce assumes that your Visualforce page is already handling record types.
- Optionally, enter any comments to note the reason for this change.
- Click Save.
To remove an override:
- From the appropriate object’s management settings, go to Buttons, Links, and Actions.
- Click Edit next to the override.
- Select No Override (default behavior).
- Click OK.