Play Games

Search This Blog

Friday, April 15, 2016

How to highlight the field value (or) display the field value in color in standard detail page

In order to highlight or color a field value, we need to use formula field along with infographics api.
Example : In lead Detail page,I want to highlight company field Value.
Create a formula field using infographics api as shown in the image below.
Here I created company__c as the custom field.

Formula field : IMAGE("//chart.googleapis.com/chart?chst=d_text_outline&chld=FFCC33|32|h|FF0000|b|"  & Company, "")
Output :

Note: Please go through the link to know more about Infographics API .
 "https://developers.google.com/chart/infographics/docs/dynamic_icons#outlined-font-text-blocks-text-only"
Thanks to Deepak Anand for providing this solution. 

No comments:

Post a Comment