How to use Filed Styles?

Shir Sharvit
Tera Contributor

Hi,

I am trying to use field styles to color the Number field on the incident form and in the list red when the 'reopen count' is greater than 0.

 

Thank, Shir.

11 REPLIES 11

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Shir Sharvit 

 

It should be as below:

 

background-color: red;

 

Try this.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

 

It still does not work.

ShirSharvit_0-1698054779632.png

 

@Shir Sharvit 

 

Check that Reopen count field is Integer type and not string. 

 

Try below once:

 

javascript: parseInt(current.reopen_count) >0;

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Why isn't it working? You have the red dot in there?


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.