The Official Salesforce Blog

The Official Salesforce Blog

Spice Up Your Pages with Image Fields

Eric Bezar Jan 8, 2006

With the Winter ’06 release, formula fields allow you to incorporate images into standard and custom tabs, list views, and reports. Because people recognize images more quickly than they can read words, adding images to Salesforce can enable users to find the data they’re looking for more quickly. For example,

• Photos for product catalogs or employee directories
• Graphical representations of status, priority, or rating
• Clickable Buttons
• Online Presence Indicator

As an example, you can add green, yellow, or red flag images to the Cases tab to provide a quick visual indication of case priority.

Image_example_6

Formula Return Type:
Text

Formula:
IMAGE(
CASE( {!Priority},
"Low", "/img/samples/flag_green.gif",
"Medium", "/img/samples/flag_yellow.gif",
"High", "/img/samples/flag_red.gif",
"/s.gif"),
"priority flag")

For tips & techniques and many more samples, be sure to check out Getting Started with Image Fields on the Image Fields home page on successforce.com. 

 

7 Comments

Krishnan

Is it possible to make WIL's into clickable images?

Eric Bezar

No, you can't make WIL's into clickable images, but you can make hyperlink formula fields into clickable images.

You should be able to replace your WIL with a formula field of return type Text, and then use a combination of HYPERLINK & IMAGE functions to do this.

Where do you get the *.gifs for the images?

Eric Bezar

Look on the last page of the "Getting Started with Images" document for a list of sample images that are available on the salesforce site. You can reference them exactly as in the image formula samples (using relative file references).

You can also load images in your Documents tab and reference them using document IDs. This is described in "Getting Started with Images".

Is it possible to make the stoplights bigger?

Is it possible to make the stoplights bigger?

Larry Click

How can I use an image formula field that references something in a Related List. Specifically I'd like a visual indicator in Accounts and Contacts that tells our service reps at a glance that the customer has an active contract.

Eric Bezar

Image fields are part of the formula language, and there isn't currently a way to reference information in a related list from a formula that is part of the parent record.

We are planning to provide this capability in the future.

Post a comment