You need to sign in to do that
Don't have an account?
VICKY_SFDC
FORMULA TO DISPLAY IMAGE
FOR MY FOR MULA FIELD I CREATED A PICKLIST FIELD i.e Donated_above_10k__c where its values is yes,no,may be
According to my formula
yes--->image1 display
no--->image 2
may be --->images 3
All images are uploaded in sratic resource
Here is the formula
CONTACT( Donated_above_10k__c ,
“Yes”, IMAGE("https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622553334000/GoldenBadge?", "Yes", 100, 100),
“No”, IMAGE(“https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622540671000/QuickCase2?”,”No”,16,16),
“IDK”, IMAGE(“https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622563356000/gg?”,”IDK”,16,16),
“”)
According to my formula
yes--->image1 display
no--->image 2
may be --->images 3
All images are uploaded in sratic resource
Here is the formula
CONTACT( Donated_above_10k__c ,
“Yes”, IMAGE("https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622553334000/GoldenBadge?", "Yes", 100, 100),
“No”, IMAGE(“https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622540671000/QuickCase2?”,”No”,16,16),
“IDK”, IMAGE(“https://amazing-astro-230651-dev-ed--c.visualforce.com/resource/1622563356000/gg?”,”IDK”,16,16),
“”)
You can use something like this
Or you can also try out the case formula that will be much more easier
Refer to similar thread here:
https://developer.salesforce.com/forums/?id=906F0000000AfvdIAC
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.
It didn't worked for me
But there is one alternative approach throgh which i got the answer
I created a checkbox and the write this formula text--- ----------------------------------->IF(Checkbox__c, IMAGE("/img/samples/stars_500.gif", "Five Stars"), IMAGE("/img/samples/stars_000.gif", "No Rating") )
For Images i used in formula field go to below link :
http://www.christiernan.com/where-to-find-those-salesforce-stock-images/
Greetings!
The syntax for using the image in the formula field is-
IMAGE(image URL, alternate text, height, width)
image URL - It is the URL of the image.
alternate text - The text which shows if the image not load.
height - Height of the image.
width - Width of the image.
Please use the above syntax to implement the formula for the image.
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
indigocard (https://www.indigocard.org/)
Thanks&Regards
Dani Daniels