Salesforce - How to Add a Button in Salesforce Lightning
- George Apostolov
This guide is an interactive LiveDemo. Create interactive demos of your own product: Interactive demo software · Interactive demos for sales outreach · Start free
Salesforce - How to Add a Button in Salesforce Lightning: step-by-step 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.
Quick answer: To add a button in Salesforce Lightning, navigate to Setup and Object Manager, select the desired object, and create a new custom button under Buttons, Links, and Actions. Define its properties, save it, and then use the Page Layout section to drag the newly created button onto the layout before saving the final changes.
About this Salesforce tutorial
Configure custom buttons in Salesforce Lightning by defining their properties in Object Manager and placing them onto your page layout. This guide covers salesforce - How to Add a Button in Salesforce Lightning in 13 steps, starting with "Navigate to Setup and go to Object Manager " and finishing with "Click Save to apply the changes to the page layout". The interactive demo above is a click-through copy of the real Salesforce interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does salesforce - How to Add a Button in Salesforce Lightning take?
13 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your Salesforce data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under Salesforce. Related guides: Salesforce - How to Add a Chart to a Salesforce Report, Salesforce - How to Add a Column in Salesforce Report and Salesforce - How to Add a Cross Filter in Salesforce Report. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





