+ Start a Discussion
Nick WhiteNick White 

Image Link options in Lightning?

I currenty have some Image linked icons in Classic, which do not display well (or in some cases at all) in LEX.
I can find the following link, which clarifies that Image Links are avaiable in LEX, but can not find any resourse in order to find some updated images I could use as we try and transfer from Classic to LEX.
Image Link
Can anyone point me in the right direction please.

 
IMAGE(IF(OR(Ordered_Value__c = 0,Won_Value__c = 0), "/img/samples/stars_000.gif",
IF(Ordered_Value__c / Won_Value__c <0.2, "/img/samples/stars_100.gif",
IF(Ordered_Value__c / Won_Value__c <0.4, "/img/samples/stars_200.gif",
IF(Ordered_Value__c / Won_Value__c <0.6, "/img/samples/stars_300.gif",
IF(Ordered_Value__c / Won_Value__c <0.8, "/img/samples/stars_400.gif",
IF(Ordered_Value__c / Won_Value__c <1.2, "/img/samples/stars_500.gif",
IF(Ordered_Value__c / Won_Value__c <1.5, "img/msg_icons/warning16.png",
"img/msg_icons/error16.png")))))))
, "Error")

 
Raj VakatiRaj Vakati
The URL Must be 
IMAGE(IF(OR(Ordered_Value__c = 0,Won_Value__c = 0), "/resource/samples/stars_000.gif",
IF(Ordered_Value__c / Won_Value__c <0.2, "/resource/samples/stars_100.gif",
IF(Ordered_Value__c / Won_Value__c <0.4, "/resource/samples/stars_200.gif",
IF(Ordered_Value__c / Won_Value__c <0.6, "/resource/samples/stars_300.gif",
IF(Ordered_Value__c / Won_Value__c <0.8, "/resource/samples/stars_400.gif",
IF(Ordered_Value__c / Won_Value__c <1.2, "/resource/samples/stars_500.gif",
IF(Ordered_Value__c / Won_Value__c <1.5, "resource/msg_icons/warning16.png",
"resource/msg_icons/error16.png")))))))
, "Error")


"/resource/samples/green.png"


https://success.salesforce.com/answers?id=9063A000000e7ORQAY

https://salesforce.stackexchange.com/questions/140819/formula-filed-to-display-image-works-in-classic-not-in-lightning

 
Raj VakatiRaj Vakati
PLease ignore my above answer pls 

Use this one 

 
IMAGE(IF(OR(Ordered_Value__c = 0,Won_Value__c = 0), "/img/samples/stars_000.gif",
IF(Ordered_Value__c / Won_Value__c <0.2, "/img/samples/stars_100.gif",
IF(Ordered_Value__c / Won_Value__c <0.4, "/img/samples/stars_200.gif",
IF(Ordered_Value__c / Won_Value__c <0.6, "/img/samples/stars_300.gif",
IF(Ordered_Value__c / Won_Value__c <0.8, "/img/samples/stars_400.gif",
IF(Ordered_Value__c / Won_Value__c <1.2, "/img/samples/stars_500.gif",
IF(Ordered_Value__c / Won_Value__c <1.5, "/img/msg_icons/warning16.png",
"/img/msg_icons/error16.png")))))))
, "Error")