Salesforce - How to Add a Button in Salesforce Lightning
- George Apostolov
- 05 Sep 2025
Guide
Navigate to Setup and go to Object Manager.
Locate the specific object where you want to add the button (e.g., Account, Opportunity).
Look for the Buttons, Links, and Actions in the left pane.
Click the New Button or Link button on the top right to create a new custom button.
Define the button's properties like:
Label: The text is displayed on the button.
Display Type: Select and choose between a link or a button.
Behaviour: Eg. Displaying in a new window
Content Source: Depending on the action type, you may need to specify content, such as the URL to navigate to or the Apex code to execute.
You can check for syntax errors while inputing your link and formula as well.
Once you've configured the button, click Save.
Now, head over to the Page Layout in the left pane.
Click on the existing layout or create a new one (top right)
Select Buttons to see your newly created custom button.
Click and hold the button
Then drag it to the desired section of the page layout.
Click Save to apply the changes to the page layout.
Create your first interactive demo in minutes
No credit card required • Start building today


