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 |
-
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"))) } - Add the link to your account page layout.