Search
Twitter
« Apex Unit Test | Main | Salesforce Hires Kundra to Expand Overseas »
Friday
Nov302012

Turn a Salesforce Hyperlink into a Button:

 

If you're using Salesforce and have a Hyperlink that uses formula fields, you can make it stand out as an action by converting it into a Salesforce button. Here is what you need to do: 

 

  1. Create an image of the button and store it as a document
  2. Create a Hyperlink field 
  3. Use the following code to convert the Hyperlink into a button

 HYPERLINK("/servlet/servlet.Integration?lid=01N300000008kgN&eid=" & {!Id} , IMAGE("/servlet/servlet.Images?oid=00D304011111xYG&id=0153111110400F5uW", "Create a New Opportunity"))

Here is how the code functions:

 

  • The first half of the code builds the link
  • The second half of the code displays the image you created for the button

 

 

That's it!

 

Tell me in the comments how this could be helpful as an admin!

 

 

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.