---
schema_version: "1"
id: dd6ad825d1cd8a3ff186a9c9a9ed3cfb6249e46fde1c5053278eefdf43bdf071
title: Considerations for Overriding Standard Buttons
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/links_override_considerations.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.links_override_considerations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3eb680e9ffbc98e20ce6642be759c95cf28809a48d3589fb777b20f9995361dc
description: Before you override a standard button, review these considerations.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Considerations for Overriding Standard Buttons

Before you override a standard button, review these considerations.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Available in: <strong>Enterprise</strong>, <strong>Performance</strong>,
              <strong>Unlimited</strong>, and <strong>Developer</strong> Editions
            </p>
            <p>Visualforce
              overrides also available in: <strong>Contact Manager</strong>,
              <strong>Group</strong>, and <strong>Professional</strong> Editions
            </p>
            <p style="margin-bottom:0;">Record
              types available in: <strong>Professional</strong>, <strong>Enterprise</strong>,
              <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong>
              Editions
            </p>
          </td>

        </tr>
      </tbody>
    </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d147536e98">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d147536e98 ">To override standard buttons:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d147536e98 ">Customize Application</td>

        </tr>
      </tbody>
    </table>

## Implementation Tips

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_important.png)

Important Before you override a standard button with a Lightning component or Visualforce page, review implementation details in the respective developer guides.

- If you override a standard button in Salesforce, that button is still available in Connect Offline, but it retains its original behavior.
- If a button isn’t 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 dropdown list in the Salesforce Classic sidebar.
- Person Account records use any standard button overrides that you make for accounts. Person Account records also use any overrides for the View Self-Service and Enable Self-Service buttons that you make for contacts.
- If your organization uses the Console tab, overrides for the Edit and View buttons for an object don’t 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.
- When you override the Edit button with a Visualforce page, you’re also overriding default logic that checks whether the record has been locked for approval. However, you can perform the same check by implementing the `Approval.lock` Apex method.

## Implementation Tips Specific to the View Action

- The View standard button refers to all links in Salesforce that display the detail page for a record. Overriding the View standard button reroutes all of these links.
- The View action is the only one that supports overrides with a Lightning record page. To make a Lightning record page available for a View action override, activate it in the Lightning App Builder.
- Activating the Lightning record page assigns it as the org default for its associated object. If you activate the Lightning record page for specific Lightning apps only, the page takes precedence over the Lightning Experience Override setting for the View action on the object in those apps.
- If you have the View action overridden with a Visualforce page in Salesforce Classic, the Setup menu on that object record page in Lightning Experience displays the Edit Page option. Selecting **Edit Page** in Lightning Experience on an object page that’s overridden with a Visualforce page in Salesforce Classic lets you create a custom Lightning Experience record page for that object in the Lightning App Builder.

## Limitations

- You can override buttons on the detail page but not the edit page of a record.
- You can only override these standard buttons: New, View, Edit, and Delete.
- For tasks in Salesforce Classic, you can only override standard buttons and links.
- You can’t change buttons on lookup dialogs, reports, or tabs. However, you can change the buttons on list view and search result layouts under search layouts.
- Action overrides on the New standard button don't work on New Object links in lookup searches.
- Action overrides on the Edit standard button disable inline editing on the corresponding record detail component in Lightning experience.
- For objects with multiple record types, the Outlook and Gmail integrations don’t support action overrides unless you choose to skip the record type selection page.
- You can’t relabel or relocate standard buttons on a record detail page.
- When overriding tabs or buttons with a Lightning component, you can select only Lightning components that implement the `lightning:actionOverride` interface.
- Visualforce overrides to standard actions such as View, New, Edit, and Delete aren’t supported in Experience Builder sites. When Visualforce overrides are applied to these actions, the buttons don’t appear on record detail pages in sites.
- A standard button (New, Edit, View, Delete, and Clone) overridden with a Visualforce page doesn’t show up in the Salesforce mobile app unless the Visualforce page is enabled for Salesforce mobile apps. Overriding standard list and tab controls isn’t supported in mobile.
- When overriding a standard action with an Aura component on an object with more than one active record type, the record type selection screen uses Salesforce Classic styling on mobile devices.
- When overriding tabs with a Visualforce page, you can select only Visualforce pages that use the standard list controller for that tab’s associated object, 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 buttons with a Visualforce page, you can select only Visualforce pages that 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:
    
    ```markup
    <apex:page standardController="Account">
    
        ... page content here ...
    
    </apex:page>
    ```

#### See Also

- [Override Standard Buttons and Tab Home Pages](https://help.salesforce.com/s/articleView?id=platform.links_customize_override.htm&release=264.0.0&type=5 "You can override the behavior of standard buttons—like New, View, or Edit—in Salesforce Classic, Lightning Experience, and mobile independently. You can also override the tab home page that displays when a user clicks a standard, custom, or external object tab.")
- [_Visualforce Developer Guide_: Overriding Buttons, Links, and Tabs with Visualforce](https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_customize_override.htm)
- [_Lightning Aura Components Developer Guide_: Standard Actions and Overrides Basics](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_using_lex_s1_action_overrides_basics.htm)