You need to sign in to do that
Don't have an account?
pmozz01
Image formula based on Lead Score
I have a calculated lead score field and would like to display a star rating based on the numerical values. Here's the code I did, but I cannot even save it as it says I have a "syntax error" and highlights the first less than operator.
IMAGE(
IF(Total_Lead_Score__c , < 650, "/img/samples/stars_100.gif",
IF (AND (Total_Lead_Score__c , > 649, Total_Lead_Score__c < 799, "/img/samples/stars_200.gif", "2 stars"),
IF (AND (Total_Lead_Score__c , > 800,
"/img/samples/stars_300.gif", "3 stars"))), "Star Rating")
)
IMAGE(
IF(Total_Lead_Score__c , < 650, "/img/samples/stars_100.gif",
IF (AND (Total_Lead_Score__c , > 649, Total_Lead_Score__c < 799, "/img/samples/stars_200.gif", "2 stars"),
IF (AND (Total_Lead_Score__c , > 800,
"/img/samples/stars_300.gif", "3 stars"))), "Star Rating")
)
IF(Total_Lead_Score__c , < 650, IMAGE ("/img/samples/stars_100.gif", "1 Star"),
IF (AND (Total_Lead_Score__c , > 649, Total_Lead_Score__c < 799, IMAGE ("/img/samples/stars_200.gif", "2 stars"),
IF (AND (Total_Lead_Score__c , > 800, IMAGE("/img/samples/stars_300.gif", "3 stars"))), "Star Rating")
)
From what I can see, you don't want a comma between your field and the "less than" operator. I've made my recommended changes to your formula below.
Where did you get the star images from? I'd like to implement a similar field for my company.
Thanks.
Nathan