How to Change the Background Color for Priority in Incident for specific user only

Sravani47
Tera Contributor

How to Change the Background Color for Priority field in Incident, for specific user only Not for all user

Please find the screenshot 

Sravani47_0-1667027976375.png

Please help me on this

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Sravani47,

 

You have to add additional conditions in value field for specific user (using users sys_id) for Field styles.

 

Extra condition will be - && gs.getUserID() =="add_user_sys_id _here"

 

 

For example - 

Table - Incident

Field - Priority

Value - javascript:current.priority == 3 && gs.getUserID() =="add_user_sys_id _here"

Style - color: gold;

 

Note - modify it as per your fields and need.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

11 REPLIES 11

Murthy Ch
Giga Sage

Hi @Sravani47 
So currently how did you configured that?

Can you share it here?

Thanks,
Murthy

Hi Murthy,

 

Where we can find that code .

 

Hi @Sravani47 
You can find it in Styles table:

MurthyCh_0-1667030775179.png

You can use the approach which is shared by @Sagar Pagar 

 

 

Thanks,
Murthy

Hi @Sravani47 

 

You can find it in task table because those fields are inherited from parent table.

 

Thanks,
Murthy