How do you set a list field style for only a specific list view?

Rain Vaine
Kilo Sage

Hello experts,

Do you know of any method on how you set a field style in a list for only a certain list view. 
For example I only want to display it for default view and not other views.


Regards:
Vaine

2 REPLIES 2

shikhatyagi
Kilo Sage

Hi @Rain Vaine 

 

I have used below code in the Field style value and It will show VIP only on major_incidents View.

Please make changes in the code as per your requirement.

 

javascript:current.caller_id.vip == true && (gs.action.getGlideURI().getMap().get('sysparm_view').toString()=='major_incidents')

 

shikhatyagi_0-1715928167329.png

 

 

Please Mark this Helpful and Accept Solution if it solves your issue.

 

Thanks & Regards,

Shikha Tyagi

Hello,
Thanks for the idea I would try that one.
Regarding this part, it seems that the RGB method: background-color: rgb(255, 255, 0)

also work in field styles but I cannot seem to find any existing record that uses that. Do you know of any specific reason?

Regards,
Vaine