- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 06:47 AM
I have an ask to make a custom field stand out whenever a VIP is selected. No big deal, I figured I'd just copy the style from the Incident caller field and switch up the variable. Except that doesn't work. So I looked around, found another person trying for a different table, and that didn't work, either.
So now I have two styles:
javascript:current.u_customer.vip == true
and
javascript: var answer = current.u_customer.vip == true || current.u_requested_for.vip == true; answer;
Neither of them work. In the second one, I even tried setting up an or for reading another field, and neither pick up. Am I missing something? The actual style is identical to the style on the Caller field. Just seems like it should be working.
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:19 AM
If you are creating a field style [sys_ui_style] they apply to the list view. If you're looking to add styling to the form view, you will need to create a client script.
See the client script called 'Highlight VIP Caller' for the Incident table as an example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:35 AM
That's so bizarre! But thank you, this was exactly it.