Flags for Case Priority This formula displays a green, yellow, or red flag image to indicate case priority.
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 details about using this function, see IMAGE.
Color Squares for Case Age This formula displays a 30 x 30 pixel image of a red, yellow, or green, depending on the value of a Case Age custom text field.
IF( Case_Age__c > 20, IMAGE("/img/samples/color_red.gif", "red", 30, 30), IF( Case_Age__c > 10, IMAGE("/img/samples/color_yellow.gif", "yellow", 30, 30), IMAGE("/img/samples/color_green.gif", "green", 30, 30), ))For details about using these functions, see IF and IMAGE.
Traffic Lights for Status This formula displays a green, yellow, or red traffic light images to indicate status, using a custom picklist field called Project Status. Use this formula in list views and reports to create a “StatusSummary” dashboardview.
Here are some examples
Flags for Case Priority
This formula displays a green, yellow, or red flag image to indicate case priority.
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 details about using this function, see IMAGE.
Color Squares for Case Age
This formula displays a 30 x 30 pixel image of a red, yellow, or green, depending on the value of a Case Age custom text field.
IF( Case_Age__c > 20,
IMAGE("/img/samples/color_red.gif", "red", 30, 30),
IF( Case_Age__c > 10,
IMAGE("/img/samples/color_yellow.gif", "yellow", 30, 30),
IMAGE("/img/samples/color_green.gif", "green", 30, 30),
))For details about using these functions, see IF and IMAGE.
Traffic Lights for Status
This formula displays a green, yellow, or red traffic light images to indicate status, using a custom picklist field called Project Status. Use this formula in list views and reports to create a “StatusSummary” dashboardview.
IMAGE(
CASE(Project_Status__c,
"Green", "/img/samples/light_green.gif",
"Yellow", "/img/samples/light_yellow.gif",
"Red", "/img/samples/light_red.gif",
"/s.gif"),
"statuscolor")
Fordetailsaboutusingthesefunctions, seeIMAGEandCASE.
StarsforRatings
Thisformuladisplaysasetofonetofivestarstoindicatearatingorscore.
IMAGE(
CASE(Rating__c,
"1", "/img/samples/stars_100.gif",
"2", "/img/samples/stars_200.gif",
"3", "/img/samples/stars_300.gif",
"4", "/img/samples/stars_400.gif",
"5", "/img/samples/stars_500.gif",
"/img/samples/stars_000.gif"),
"rating")Fordetailsaboutusingthesefunctions, seeIMAGEandCASE.
ConsumerReports™-StyleColoredCirclesforRatings
Thisformuladisplaysacoloredcircletoindicatearatingonascaleofonetofive, wheresolidredisone, halfredistwo, blackoutlineisthree, halfblackisfour, andsolidblackisfive.
IMAGE(
CASE(Rating__c,
"1", "/img/samples/rating1.gif",
"2", "/img/samples/rating2.gif",
"3", "/img/samples/rating3.gif",
"4", "/img/samples/rating4.gif",
"5", "/img/samples/rating5.gif",
"/s.gif"),
"rating")
Fordetailsaboutusingthesefunctions, seeIMAGEandCASE.
HorizontalBarstoIndicateScoring
Thisformuladisplaysahorizontalcolorbar (greenonawhitebackground) ofalengththatisproportionaltoanumericscore. Inthisexample, themaximumlengthofthebaris200pixels.
IMAGE("/img/samples/color_green.gif", "green", 15, Industry_Score__c * 2) &
IMAGE("/s.gif", "white", 15,
200 - (Industry_Score__c * 2))
There is a standard way to do this.
You can create a custom field with type "Text Area (Rich)" on the Case object.
Then you can revise page layout to place this field.
Or you can upload the image to the Document or Static Resource, but you have to make a VF page to show your image and link it to your Case page.
When you create a new case, you can insert a image to the custom field or just input a link to a image.