How to change font color of Opened for field to red when user is VIP on interaction form in SOW view

Tejaswi Gundu
Tera Contributor

Hi,

 

We have a requirement where we need to display 'opened for' field in red color or need to add vip icon to it on interaction form.

I've written a onChange client script on opened for field which is working as expected when I was in fulfillment view but when I'm checking the same in Service Operations Workspace, it isn't displaying.

Client script:

TejaswiGundu_0-1721237717019.png

Fulfillment view:

TejaswiGundu_2-1721238032133.png

Service Operations Workspace:

TejaswiGundu_3-1721238211622.png

 

Can anyone suggest how to achieve this requirement?

 

Thank you!

Tejaswi G

 

2 REPLIES 2

Sumanth16
Kilo Patron

Hi @Tejaswi Gundu ,

 

 

You can achieve this by defining a field style on the "Color" field. Here is how you do :

 

1. Right click on the color field

 

2. go to Configure Styles.

 

3. Click on "New"

 

4. Select table where the field belongs.

 

5. Select the "Color" field in the Field name drop dow box.

 

6. In the Style field write this line: background-color:Red;

 

7. Submit.

 

https://www.servicenow.com/community/developer-forum/highlight-a-boolean-field-in-workspace/td-p/246...

 

Plz mark my solution as Accept, If you find it helpful.

 

 

Thanks & Regards,

Sumanth meda

Tejaswi Gundu
Tera Contributor

Hi @Sumanth16 ,

 

I've already tried this solution previously but it is displaying red color on list view on instance not on Service Operations Workspace.

Can you please suggest any other solution to achieve this?

 

Thank you!