Override Buttons, Links, and Tabs with Visualforce
Override the behavior of standard buttons—such as New, View, and Edit—in Salesforce Classic, Lightning Experience, and the Salesforce mobile app. You can also override the tab home page that displays when a user clicks a standard, custom, or external object tab.
-
From Setup, click Object Manager, and then click the object that you want to set an override for.
-
Click Buttons, Links, and Actions, and then select Edit from the dropdown of the button or tab home page that you want to override.
-
To override the behavior in Salesforce Classic, select Visualforce page as the override type, and the select the Visualforce page that you want to run when users click the button or tab.
-
To apply the same selected Visualforce page in Lightning Experience or the Salesforce mobile app, select Use the Salesforce Classic override.
-
Save your changes.
-
Considerations for Customizing Overrides
Get familiar with these considerations before you override the behavior of a standard button or tab.
-
Define Custom Buttons and Links to Visualforce Pages
Create a custom button or link on an object that opens a Visualforce page.
-
Learn how to restore the default behavior of a standard button and tab.
See Also