Considerations for Overriding Standard Buttons | Salesforce
Considerations for Overriding Standard Buttons
Available in: Enterprise, Performance, Unlimited, and Developer Editions
Visualforce overrides also available in: Contact Manager, Group, and Professional Editions
User Permissions Needed
To override standard buttons:
Before you override a standard button, review the following considerations:
You can override a standard button with a Visualforce page.
If you override a standard button in Salesforce, that button is still available in Connect Offline or Salesforce Classic, but it retains its original behavior.
A standard button (New, Edit, View, Delete, and Clone) overridden with a Visualforce page won’t show up in Salesforce1 unless the Visualforce page is enabled for Salesforce mobile apps. Overriding standard list and tab controls isn’t supported in Salesforce1.
You cannot add button overrides to a Force.comAppExchange package.
Only some standard buttons can be overridden. For example, you cannot override the Save or Sharing buttons, but you can override New, View, Edit, and Delete buttons.
The View standard button refers to all of the links in Salesforce that display the detail page for a record. Overriding the View standard button reroutes all of these links.
If a button is not available for overrides, you can still hide it on the page layout.
Button overrides affect everywhere that action or behavior is available. For example, overriding the New button on an account also overrides the account option in the Create New drop-down list in the sidebar.
You can override buttons on the detail page but not the edit page of a record.
Buttons on lookup dialogs and tabs cannot be changed. However, you can change the buttons on list view and search result layouts under search layouts.
Buttons on reports cannot be changed.
Some standard buttons can be overridden, but none can be relocated on the detail page or relabeled.
If your organization uses person accounts, your person account records use any standard button overrides you have made for accounts. Your person account records also use any overrides for the View Self-Service and Enable Self-Service buttons you have made for contacts.
If your organization uses the Console tab, overrides for the Edit and View buttons for an object do not affect the Edit and View buttons in the mini page layouts. Pages that display due to overrides display in the console without the header or sidebar.
To replace a standard button with a custom button, first define the custom button, then customize the page layout to hide the standard button and display the custom one in its place