We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Add Flag on List View of Caller field on Incident

MarotiR
Tera Contributor

Hi Everyone,
how to implement below requirement:

Enhance the Incident List View in ServiceNow by visually identifying callers who meet specific criteria. When the Caller on an Incident record is:

  1. user is not VIP, AND
  2. A member of the “VIP Assistant ”  group,

then the Caller field in the List View must be automatically highlighted using:

  • A blue text color, and
  • A caller-specific image (user_delegate.gif) displayed next to the caller’s name similar like VIP flag Image.

This visual indicator must apply only on the Incident List View, and only when both conditions (caller is not VIP + VIP Assistant membership) are true. All other callers must remain displayed with the default styling.

  • Hi
10 REPLIES 10

Ankur Bawiskar
Tera Patron

@MarotiR 

you can use field style for this, something like this. please enhance the existing caller_id field style on INC table

This will work in native. Just change and add your group name

javascript:current.caller_id.vip == false && gs.getUser().getUserByID(gs.getUserID(current.caller_id)).isMemberOf('CAB Approval')

Output: Abel Tuter is Not VIP but member of group -> so icon is shown

Christen Mitchell is VIP and member of group -> so icon is not shown

field style caller.gif

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar - Want to I want to change the font or text color to red  on list view for the Caller field like below screenshot of caller coumn:

MarotiR_0-1770807583069.png

 

@MarotiR 

then update as this at the end as additional style

color:#ff0000

AnkurBawiskar_0-1770868087468.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@MarotiR 

since caller is reference field, it will always show in Blue color as it's a link to User Record

I don't think you can give text color as RED

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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