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
venkatsforcevenkatsforce 

Adding colors to StandardPage layout fields..

Is this possible to adding a colors for textfields in StandardPage view..Like Account object fields...

 

 

 

 

Thanks

=================

VenkatSforce

AshishyadavAshishyadav
i believe you have to use Visual Force page to show this color functionality
venkatsforcevenkatsforce

Hi ashish

 

without using Visualforcepage, is it possible to display the colors in fields uisng formula editor.?

Jerun JoseJerun Jose
Hi Venkat,

The content inside a field value is HTML escaped when you display on the UI, so even if you put in some HTML content to display color, it wont show up. As Ashish mentioned, you can use visualforce to color your text as you want. If you dont want to override the whole page, you can also use inline VF to display the colored text for one field.

If you are actually looking to display the field label in color, you can put HTML markup on the field label and it will display colored text on the page layout.
venkatsforcevenkatsforce

Hi Jose

 

I put the Html markup in FieldLabel as <font color="somecolor">FieldLabelName but it displayed in the layout as

<font color="somecolor">Name.....

Is there any examples Plz post it....

 

Thanks

=========

VenkatSforce

Jerun JoseJerun Jose
Try the field label as <span style="color:red">My Label</span>