+ Start a Discussion
James HayesJames Hayes 

Add Red and Green Banner Across Top of Account Page

I have used this formula, it gave me a field with a red or green flag.  I would like a banner displayed across the top of the account. 

IF( ISPICKVAL( Type, "Client"), 

IMAGE("/img/samples/flag_red.gif","Customer Account"), 

IMAGE ( "/img/samples/flag_green.gif","Prospect Account"))

Can I get some help?  Appreciate it. 
Best Answer chosen by James Hayes
Anurag SaxenaAnurag Saxena

Hi James, 
Here is the Updated formula. 
CASE( Text(Type),
"Customer Account", IMAGE("/img/samples/flag_red.gif","Customer Account",100,100),
"Prospect  Account", IMAGE ( "/img/samples/flag_green.gif","Prospect Account",100,100),
"" )

refer this link:
https://help.salesforce.com/articleView?id=000007604&type=1

Choose as best answer :)

Thanks

All Answers

Raj VakatiRaj Vakati
Hi James , 
Here is the formula  . 
CASE( Text(Type),
"Customer Account", IMAGE("/img/samples/flag_red.gif","Customer Account"),
"Prospect  Account", IMAGE ( "/img/samples/flag_green.gif","Prospect Account"),
"" )
Ashish DevAshish Dev
You can create a section (at top of the page) with one column layout on account standard layout page, display your formula field on that section. Additionally you can set height and width of images.

Let me know if this solves your problem.
James HayesJames Hayes
Thanks for the formula.  I cannot set the height or Width.  This is what it displays currently at the top of the page. User-added image
Anurag SaxenaAnurag Saxena

Hi James, 
Here is the Updated formula. 
CASE( Text(Type),
"Customer Account", IMAGE("/img/samples/flag_red.gif","Customer Account",100,100),
"Prospect  Account", IMAGE ( "/img/samples/flag_green.gif","Prospect Account",100,100),
"" )

refer this link:
https://help.salesforce.com/articleView?id=000007604&type=1

Choose as best answer :)

Thanks

This was selected as the best answer