How do you set a list field style for only a specific list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 10:45 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 11:42 PM
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')
Please Mark this Helpful and Accept Solution if it solves your issue.
Thanks & Regards,
Shikha Tyagi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:51 AM
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