Change font color to red for caller with a true vip flag on the incident table

marrerocmm
Tera Contributor

Hello, I am trying to make the caller field appear red in list view on the incident table, when the caller has a vip flag set to true (on sys_user table). I currently have the vip flag on that field, but can't seem to change the font color of the caller's name to red. please help! 🙂

1 ACCEPTED SOLUTION

Hi,

Is that what you initially wanted or did I misread what you wrote? If so, sorry about that.

Actually, after re-reading what you wrote...you said it both ways, thus the confusion was accidentally caused...

"Hello, I am trying to make the caller field appear red in list view on the incident table"

then you said: "but can't seem to change the font color of the caller's name to red"

My goal was to point you as detailed as I can to accomplish what you asked for. From here, it is hopeful you can try things out and learn, etc.

It's recommended to refer to documentation for guidance beyond what I've shared as that can answer your questions: https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/navigation...

Inside the record, the caller's name is red there. So you could use the modern cell coloring for list view, which is a red dot and a bit calmer, then when they open the record, the name is in red in the caller reference field.

Otherwise, if you use list control for the respective table list, you can click "Omit links" and "Omit drill-down link" and then use color:red; in the style and that works for the font color...but then you disable all links in list view and that's not ideal.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hi,

The VIP flag on the field is out of box, so we all have that.

If you wish to set your own, then you can navigate to an incident record, right-click the caller_id field and choose "Configure Styles". Then ensure you have settings such as this:

find_real_file.png

javascript:current.caller_id.vip == true

background-color:red;

And then in list view it'll look like this:

find_real_file.png

So see the field background completely red, you'd have to change your personal list column setting on the "Modern cell coloring" to false. With modern cell coloring on, no background color is shown, just a dot. With it off, then it sets the entire background to red instead:

find_real_file.png

find_real_file.png

find_real_file.png

This does override the VIP image otherwise, if you try to add the code to the field style where the VIP image is showing...then it just changes the background behind the VIP flag image to red (barely visible). You can test it out and see what works for you.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thank you Allen! Is there a way to make the text of the caller's name appear in red?

Hi,

Is that what you initially wanted or did I misread what you wrote? If so, sorry about that.

Actually, after re-reading what you wrote...you said it both ways, thus the confusion was accidentally caused...

"Hello, I am trying to make the caller field appear red in list view on the incident table"

then you said: "but can't seem to change the font color of the caller's name to red"

My goal was to point you as detailed as I can to accomplish what you asked for. From here, it is hopeful you can try things out and learn, etc.

It's recommended to refer to documentation for guidance beyond what I've shared as that can answer your questions: https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/navigation...

Inside the record, the caller's name is red there. So you could use the modern cell coloring for list view, which is a red dot and a bit calmer, then when they open the record, the name is in red in the caller reference field.

Otherwise, if you use list control for the respective table list, you can click "Omit links" and "Omit drill-down link" and then use color:red; in the style and that works for the font color...but then you disable all links in list view and that's not ideal.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thank you so much Allen!