OnLoad Client script help to display Background Color

rishabh31
Mega Sage

Hello Community members,

 

I am learning scripting in ServiceNow & currently working in Agent Workspace for Hands-on, as part of URL- https://www.servicenow.com/community/developer-forum/onload-client-script-help-to-setup-condition/m-...

VIP msg is successfully displayed for VIP Callers on 'Form view in Agent Workspace' for the incident table. But unable to see the VIP msg on the 'List view of Agent Workspace', after referring to the below URLs, I came to know about the 'Limitations of Agent Workspace' so to display the VIP msg on the 'List view of Agent Workspace' is not possible.

Limitations URL- https://www.servicenow.com/community/itsm-forum/display-flagged-vip-s-in-itsm-workspace/m-p/621370

 

But, yes it supports the background colour field style, so as an alternative I want to set the 'Orange' background colour in the caller field in 'List View of Agent Workspace' (Screenshot for Agent Workspace list view is attached) for ONLY 'VIP' callers for respective Incident records just to Indicate that this xyz caller is a VIP, else NO display of Orange background colour on the caller field in 'List View of Agent Workspace' when the caller is NOT VIP.

 

I tried to achieve this by following URL- https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0794200 , but not working.

 

If this is achievable through the onLoad client script, so please help with the script on how to apply/set the background Color 'Orange' on 'List view of Agent Workspace' for only VIP callers, else No display of any background colour to NON-VIP users.

 
Will mark the solution as 'Helpful' once the same is resolved.
 
Requesting support, thanks
1 ACCEPTED SOLUTION

shyamkumar VK
Kilo Patron

Right click on the caller 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:orange;

 

7. Submit.

 

also refer to this document page : 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/workspace/task/highlig... 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

2 REPLIES 2

shyamkumar VK
Kilo Patron

Right click on the caller 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:orange;

 

7. Submit.

 

also refer to this document page : 

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/workspace/task/highlig... 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

rishabh31
Mega Sage

@shyamkumar VK Alternatively, the URL shared is much more helpful, thanks

Response marked as accepted & helpful