How to update additional comments and work notes tab color in the incident form on serviceNow

ashok17
Tera Contributor

How to update 'additional comments' and 'work notes' tab color in the incident form on serviceNow.

 

I have tried updating for configure style as per attached screenshot but it's working while creating incident only after incident submitted the color not updated in the additional comments field.

 

Please let me know how to achieve this requirement.

 

ashok17_0-1776237969674.png

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron

@ashok17 

which color you are referring? share screenshots how it's behaving for new and existing record

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi, thanks for response

 

As per requirement the incident form 'Comments (Customer visible)' field should be color was orange as mentioned below screenshot and the color should be update on backend incident form as well.

 

ashok17_0-1776238576156.png

 

iftekharmir
Tera Guru

 

Hi @ashok17,

You can achieve this through System Properties.

Navigate to sys_properties.list and search for the property:
glide.ui.activity_stream.style.field_name(comments or worknotes)

Then update its value like below:

your_color; box-shadow: 10px 10px 5px #888888;

This will help you control the styling (including color) for the Additional Comments and Work Notes in the activity stream.

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Iftekhar

DB1
Tera Contributor

Option 1: UI Policy
- Navigate to System UI → UI Policies.
- Add a UI Policy Action for the field comments (or the exact field name).
- In the UI Policy Action, set the Field Styles:
- Field: comments
- Attribute: color
- Value: orange


Option 2: Client Script
If you need more flexibility (e.g., dynamic conditions), use an onLoad Client Script:
function onLoad() {
var commentsField = g_form.getControl('comments');
if (commentsField) {
commentsField.style.backgroundColor = 'orange';
}
}

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Bhavani Bharathi