function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
steve456steve456 

Field Issue

I  have a object in which i have a field

 

Dupage__c

 

 

 

I need this field to be a image ,Text. field.

 

 

All the images are in Documents .(salesforce)

 

 

How do i  get this

Jia HuJia Hu
How about set the data type as Blob?
SF7SF7

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 “StatusSummarydashboardview.

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))

Jia HuJia Hu

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.


Jia HuJia Hu
sorry for the miss.
When you create a new case, you can insert a image to the custom field or just input a link to a image.