+ Start a Discussion
Laurent LemazurierLaurent Lemazurier 

Formula to represent a scoring Horizontal Bars


Using the folowing code proposed in Salesforce Help , I've made a formula to represente Horizontal Bar representing a scoring.

IMAGE("/img/samples/color_green.gif", "green", 15, Industry_Score__c * 2) & IMAGE("/s.gif", "white", 15, 200 - (Industry_Score__c * 2))

It works well in Salesforce Classic but not in Salesforce1: the dynamic dimension is applied to both height and width of each gif, so I've got squares instead of bars.

How can I make it available in all environments (Salesforce Classic, Lightning, Salesforce1) ?

Thank's for your help