Hidden Images Available on Salesforce Servers
Did you know that there are secret images hidden on Salesforce servers that are intended for use in IMAGE() formulas? They are all found under *.salesforce.com/img/samples/ and are shown here:
Image | File Name |
---|---|
color_green.gif | |
color_red.gif | |
color_yellow.gif | |
flag_green.gif | |
flag_red.gif | |
flag_yellow.gif | |
light_green.gif | |
light_red.gif | |
light_yellow.gif | |
priority_1.gif | |
priority_2.gif | |
priority_3.gif | |
priority_4.gif | |
priority_5.gif | |
rating1.gif | |
rating2.gif | |
rating3.gif | |
rating4.gif | |
rating5.gif | |
stars_000.gif | |
stars_100.gif | |
stars_200.gif | |
stars_300.gif | |
stars_400.gif | |
stars_500.gif |
What can you do with these? Suppose you were using the Account Rating field which has values between 0 and 5. You could provide a visual representation of this value with a custom formula field:
CASE(TEXT(Rating), '5', IMAGE('/img/samples/stars_500.gif', '5 Stars'), '4', IMAGE('/img/samples/stars_400.gif', '4 Stars'), '3', IMAGE('/img/samples/stars_300.gif', '3 Stars'), '2', IMAGE('/img/samples/stars_200.gif', '2 Stars'), '1', IMAGE('/img/samples/stars_100.gif', '1 Star'), IMAGE('/img/samples/stars_000.gif', 'No Stars'))
Which gives us a graphic representation of the field:
0 comments:
Post a Comment