function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
zakarovzakarov 

show an horizontal banner on detail page of record

Hi All,

 

I want to show an horizontal banner on Standard Salesforce detail page of a record.

The color of the banner will depend in Picklist Value (A,B,C,D).

For example if you choose A, then a RED benner should be shown.

 

I don't know if i can do it in Standard, or i should create a visualforce page.

 

Thx for your help. 

 

DaveHDaveH

Not sure if a full banner is possibl without visualforce but some people use the method from the URL below to show a "Case Age" field which displays a colored image based on the age of a case.

 

https://success.salesforce.com/questiondetail?qId=a1X30000000HYVdEAO

zakarovzakarov

I've allready seen this solution, but it's not what i need.

I want to show a full banner, not just a flag.

DaveHDaveH

Ok well in that case I assume it needs to be an inline visualforce page block. It shouldn't be too complicated. Basically all you need is:

 

- Download the necessary images (or create them)

- Create a visualforce page making sure to associate the standard controller with whatever Object the detail page is for

- In the controller, get the value of the dropdown field

- Either in the controller or in Visualforce render the appropriate image based on the value of the dropdown

 

 

zakarovzakarov

Yes this is what i should to do.

but i have problem with visualforce page. how can i customize the standard detail record page on visualforce page. 

 

DaveHDaveH

Here is a good article on how to associate a visualforce page into a standard detail page:

 

http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/

zakarovzakarov

i'll see the article :)