Reply
Trusted Contributor
gokubi
Posts: 160

Create Salesforce buttons (was: Creating Hyperlinks that fit into the UI: using "buttons")

[ Edited ]
If you have custom formula fields that are Hyperlinks, you can make them stand out as actions by turning them into Salesforce.com buttons. Just create an image of the button and store it as a Document that is externally available. Once you do that, create a hyperlink field of the form:

Code:
HYPERLINK("/servlet/servlet.Integration?lid=01N300000008kgN&eid=" & {!Id} , IMAGE("/servlet/servlet.ImageServer?oid=00D304000000xYG&id=01530000400F5uW", "Create a New Opportunity"))
The first half of the hyperlink field is building the link, the second half is displaying the button image from the Document library.

I've built a handy dandy button creator that will help you create images to use in this way.

Enjoy,
Steve
 

Message Edited by Kingsley on 06-30-2006 03:56 AM

Trusted Contributor
smoody
Posts: 179

Re: Creating Hyperlinks that fit into the UI: using "buttons"

Very nice. I have made my own buttons manually but the button creator makes it extremely fast and easy.

One question: does anyone know how to use a button on a custom web link?

Regular Contributor
cpierre
Posts: 65

Re: Creating Hyperlinks that fit into the UI: using "buttons"

I too would be interested in how to create a button for custom Web URL
 
Any feedback?
Regular Contributor
rpr
Posts: 16

Re: Creating Hyperlinks that fit into the UI: using "buttons"

Your button creator is great.  Thanks for sharing!

-- Rhonda

Super Contributor
Ron Hess
Posts: 2,538

Re: Creating Hyperlinks that fit into the UI: using "buttons"

i don't think it's possible to put a button on a custom web-link, you have to use a formula field with an image.

sounds like a good feature requst.
Ron Hess
Salesforce Developer Evangelist
Check out the developer documentation | Got an idea? | Vote for this Idea!
Regular Contributor
Schlink
Posts: 28

Re: Creating Hyperlinks that fit into the UI: using "buttons"

The following post has additional info on how to turn hyperlinks into "buttons" or icons.

http://forums.crmsuccess.com/sforce/board/message?board.id=practices&message.id=1908
Contributor
Jacobmin
Posts: 9

Re: Create Salesforce buttons (was: Creating Hyperlinks that fit into the UI: using "buttons")

Can you build a formula that would link to an external site?
Super Contributor
dmcheng
Posts: 686

Re: Creating Hyperlinks that fit into the UI: using "buttons"

In the Image formula, there are two IDs - which one should be the Document ID, and what does the other one signify?
IMAGE("/servlet/servlet.ImageServer?oid=00D304000000xYG&id=01530000400F5uW"

Thanks
David

Super Contributor
dmcheng
Posts: 686

Re: Create Salesforce buttons (was: Creating Hyperlinks that fit into the UI: using "buttons")

I also would like to able to use buttons with custom links.  I need this for a button-enabled S-Control that does not open a new browser window (which is why I can't use the HYPERLINK formula).

Thanks
David
Regular Contributor
ErikGEn
Posts: 16

Re: Create Salesforce buttons (was: Creating Hyperlinks that fit into the UI: using "buttons")

Thanks to share, it work very well
I add a button generated by your saleforce button generator, and it very cool

So, its open a new brower. How can I open the scontrol in the same window ?
Code:
HYPERLINK("/servlet/servlet.Integration—lid=00b00000006xAGx&eid=a0L00000000CdPM" , IMAGE("https://EXTERNAL_SERVER/SubmitWO.GIF", "Create a New Work Order"))
Thanks