A demo on your website is just the start. Discover a dozen other marketing use cases • May 26
Register for AMA
Talk to RepX
Book a demo
Explore Hub
Platform
Demo Suite
Create, personalize, and share interactive demos across every funnel stage.
Interactive Demos
Sandbox Demos
Hubs
RepX Chat
Conversational sales agent to qualify and convert prospects.
AI Video & Voice
Discovery Questions
Qualification Workflows
Integrations
Storylane for Enterprise
Chrome Extension
Solutions
Built For
Marketing
Share product demos across your website and campaigns. Drive conversions at every stage.
Product Marketers
Growth & Demand Gen
Sales
Personalize and present interactive demo experiences before, during, and after every call.
Sales Reps & AEs
Presales & SEs
CX & Product
Cut time-to-value. Give customers interactive demos that drive real adoption.
Customer Success
Product Managers
Customers
Customers
Customer Showcase
Check out how 5000+ GTM teams win with Storylane
Customer Stories
Finer Demos Club
Demo Dundies
Customer Advocacy
    Our executive team continues to rave about how well Storylane visualizes our own tool!
Emily Elizabeth
VP Marketing
    Storylane's by far the easiest and most reliable out of other competitors.
Martin Kurowski
Product Marketing Manager
    Intuitive, powerful, and easy to use platform.
Matt Slotten
Marketing
35
demos in 3 weeks
Michael DeMarco
Product Marketing Manager
    It’s actually kind of shocking how fast it was for us.
Katie Fairbank
Director of Product Marketing
Wall Of Love
Customers
Customers
Customer Showcase
Check out how 5000+ GTM teams win with Storylane
Customer Stories
Finer Demos Club
Demo Dundies
Customer Advocacy
Resources
Resources
Blog
Events & Webinars
Help Docs
What’s New
Playbooks
Check out how 5000+ GTM teams win with Storylane
Featured
Report
The impact of interactive demos on conversion rates & time to convert
What’s New
Release notes
Pricing
Login
Start for free
Book a demo
It’s happening! Demo Dundies is back with Season 2.
Nominate your best demos
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Add a Custom Button to Page Layout in Salesforce

Updated on:
May 11, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to create and add a custom button to a Salesforce page layout.

Quick summary

Adding a custom button to a Salesforce page layout lets admins surface key actions — like external links or Apex logic — directly on object records such as Opportunity or Account. This guide walks through every step from Object Manager to dragging the button into the live layout.


Steps

  1. Navigate to Setup and go to Object Manager.
  2. Locate the specific object where you want to add the button (e.g., Account, Opportunity).
  3. Look for Buttons, Links, and Actions in the left pane.
  4. Click the New Button or Link button on the top right to create a new custom button.
  5. Define the button's properties: set the Label (text displayed on the button), choose a Display Type (link or button), configure the Behaviour (e.g., open in a new window), and specify the Content Source such as a URL or Apex code.
  6. Check for syntax errors while inputting your link and formula.
  7. Once configured, click Save to store the custom button.
  8. Navigate to Page Layout in the left pane.
  9. Click on the existing layout or create a new one using the top-right option.
  10. Select Buttons to see your newly created custom button.
  11. Click and hold the button, then drag it to the desired section of the page layout.
  12. Click Save to apply the changes to the page layout.

📌 Why this matters

Custom buttons in Salesforce allow admins to extend native CRM functionality by embedding direct URL links, JavaScript actions, or Apex-driven workflows into any object's page layout. This means sales reps and operations teams can trigger key actions — like opening an external tool or running automated logic — without leaving the Salesforce record. For organizations looking to streamline workflows and reduce context-switching, custom buttons on page layouts are a powerful, no-code-friendly customization that improves user adoption and process efficiency.
Your product deserves an interactive demo
Start free
Similar Articles
Salesforce

How to Add Help Text in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Add Company Logo to Salesforce Lightning

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Add Company Logo to Salesforce Lightning

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it