Skip to main content
All CollectionsSalesforce How-Tos and Best Practices
How to Add a Button to a Page Layout
How to Add a Button to a Page Layout
Andrew Tzikas avatar
Written by Andrew Tzikas
Updated over a week ago

To add a button onto a page layout in Salesforce, use the Salesforce Lightning App Builder.

Follow the below steps:

  1. Log into Salesforce: Log into your Salesforce account with the necessary permissions (you must be a system administrator) to edit page layouts.

  2. Navigate to the Object: Go to the object where you want to add a button. For example, if you want to add a button to a Contact page layout, navigate to the Contact Object.

  3. From the menu, select "Page Layouts" and choose the proper layout (usually, this will be titled "Swantide [Object] Layout."

  4. Enter Edit Mode for the Page Layout:

    1. In Salesforce Classic: Click into the Page Layout you want to edit.

    2. In Salesforce Lightning: Click on the gear icon (settings) in the top-right corner of your instance, and select "Edit Page."

  5. Edit Page Layout in Salesforce Classic:

    1. In Salesforce Classic, you will be taken to the page layout editor. Select "Buttons." From there, you'll see a list of buttons on the right hand side.

    2. To add a button, drag and drop the "Custom Button" element onto the page layout where you want the button to appear.

  6. Edit Page Layout in Salesforce Lightning (note: you must complete BOTH steps 4 & 5):

    1. In Salesforce Lightning, you will be taken to the Lightning App Builder.

    2. In the App Builder, locate and select the section or area where you want to add the button.

    3. Click the "Add Component" button in that section.

  7. Search for and Add a Button:

    1. In Salesforce Classic, after dragging the "Custom Button" element onto the page layout, you will be prompted to select an existing button or create a new one. Follow the prompts to select or create the button.

    2. In Salesforce Lightning, use the search bar to search for "Mobile and Lighting Actions"

    3. Drag the "Mobile and Lighting Actions" component onto the page layout.

    4. In the properties panel on the right, select the desired button from the "Select an Action" dropdown or create a new action.

  8. Configure Button Properties:

    1. Depending on whether you're using a standard button or a custom button, you may have different configuration options. For custom buttons, you may need to specify the behavior and label of the button.

  9. Save the Layout:

    1. Once you've added and configured the button, be sure to save the page layout changes.

  10. Activate the Page Layout:

    1. Ensure that the updated page layout is activated. If it's not active, users won't see the button. In Salesforce Lightning, you may need to assign the page layout to specific profiles.

  11. Test:

    1. Go to a record of the object type for which you added the button and verify that the button appears and functions as expected.

That's it! You've successfully added a button to a page layout in Salesforce. Users with the appropriate permissions will now be able to see and use the button when viewing records of that object type.

Did this answer your question?