Loading
Prepare for Email to Become the Default Login ExperienceRead More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Extend Salesforce with Clicks, Not Code
Custom Link Example: International Maps

Custom Link Example: International Maps

This example creates a link that displays a country-specific Google map.

Required Editions

Available in: Salesforce Classic

Custom buttons and links are available in: All Editions

Visualforce pages and s-controls are available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions

User Permissions Needed
To create or change custom buttons or links: Customize Application
  1. Define a link for accounts with these attributes.
    Display Type Detail Page Link
    Behavior Display in new window
    Content Source URL
    Use this sample code.
    {! 
    IF(Sample.BillingCountry = "US", 
    "http://maps.google.com/maps?q=​"&Sample.BillingStreet&​
    "+"&Sample.BillingCity&"+​"&Sample.BillingState&"+​"&Sample.BillingCountry, 
    (IF(Sample.BillingCountry = "UK", 
    "http://maps.google.co.uk/maps?q=​"&Sample.BillingStreet
    &​"+"&Sample.BillingCity&​"+​"&Sample.BillingCountry, 
    "http://maps.google.com"))) 
    }
  2. Add the link to your account page layout.
 
Loading
Salesforce Help | Article