How to Add a Custom Button to a Page Layout in Salesforce
In this article
This guide will walk you through the process of adding a custom button to a page layout in Salesforce. You will learn how to create the button, define its properties, and then place it on the desired page layout for a specific object.
Explore more Salesforce tutorials with interactive Saltfish walkthroughs.
Here's how to add a custom button to a page layout in Salesforce
- Navigate to Object Manager
Begin by accessing the 'Object Manager' tab from your Salesforce setup home. This is where you can manage all standard and custom objects within your organization.
- Select Object and Access Buttons
Choose the specific object (e.g., Opportunity) for which you want to add a custom button. Once selected, navigate to the 'Buttons, Links, and Actions' section in the object's detail page.
- Create a New Button
Click 'New Button or Link' to open the creation form. Here, you will define the button's properties, including its label, name, display type (e.g., Detail Page Button), behavior, and the content source (e.g., URL or JavaScript).
- Save the New Button
After filling in all the necessary details, you can optionally click 'Check Syntax' to validate any formulas or URLs. Then, click 'Save' to finalize the creation of your custom button.
- Edit Page Layout
Return to the object's settings and click 'Page Layouts' in the left sidebar. Select the specific page layout you wish to modify to include your new button.
- Add Button to Layout
In the page layout editor, click 'Buttons' in the left panel. Locate your newly created custom button and drag it from the palette onto the desired section of the page layout, such as the 'Custom Buttons' area.
- Save Page Layout Changes
Once the button is placed, click 'Save' in the layout editor toolbar. This action will apply your changes, making the custom button visible on the selected page layout.
Your turn to show how it works.
Build a walkthrough of your product with Saltfish, then share it with your customers.
Frequently Asked Questions
The 'Object Manager' tab is located in the top navigation menu of your Salesforce setup page, next to the 'Home' and 'Setup' tabs.


Salesforce
