[SalesForce] Static resource image in formula field

How to get/access static resource image in formula field.
static resource name is low and image is low.png.

Best Answer

This example displays the image regardless of the value in any field.

IMAGE('/resource/low', "low", 64, 64)

This example displays an image of a green square if the amount of an opportunity is greater than 100, a yellow square if it's under 51 and 99, and a red square if it's less or equal to 50. (You have to upload three images for this example)

IF( Amount > 100, IMAGE("/resource/Green", "Green"),
IF ( Amount > 50, IMAGE("/resource/Yellow", "Yellow"),
IMAGE("/resource/Red", "Red")))
Related Topic