Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

VIP flag in list view for a dot-walked field

Abbottronix
Tera Guru

On the RITM table in list view, a VIP tag shows next to the name on the requested for field if the user is a VIP.

Abbottronix_0-1763353681318.png

 

The sc_task table doesn't have a requested for field, so we need to dot walk the requested for field from the RITM table, but when we do so, the VIP flag no longer appears. 

Abbottronix_1-1763353843476.png

 

Is there any way to get the VIP flag to appear on the sc_task table, or to otherwise get a very clear and eye-catching indicator that a task is for a VIP in list view?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Abbottronix 

that field on list on sc_task is dot walked from RITM field, so field styles won't work for dot walked field

This is OOTB platform behavior.

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Deepak Shaerma
Kilo Sage
Kilo Sage

Hi @Abbottronix 

Field Styles (which control the VIP flags) do not render on dot-walked columns in a list view. They only trigger for fields that physically exist on the table you are viewing (sc_task).

Since you cannot put the flag on the dot-walked column, the standard "Best Practice" workaround is to apply the VIP styling to the Task Number or Priority field instead.

Note: You need to create a custom solution by creating the custom Requested For field to do this.
For Highlight the Task Number for VIP,

  1. Navigate to System UI > Field Styles.
  2. Click New.
  3. Fill in the form with these values:

Field

Value

Table

Catalog Task [sc_task]

Field name

Number [number]

Value

javascript: current.request_item.requested_for.vip == true

Style: 

background-image: url('images/icons/vip.gif');
background-repeat: no-repeat;
background-position: 98% 50%;
padding-right: 20px;
color: red;
font-weight: bold;


Note: Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma