- 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 06:50 AM
Hi,
I'm not sure what you're trying to do here. Do you want to make a field appear on a form when the caller is a VIP user?
Thanks
Jake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:05 AM
No, it's just making the u_customer field light up when the user is a VIP. It's what happens for the Caller field on Incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2022 07:22 AM
Hi,
I recommend a client script and a script include for this for best practice purposes.
Thanks
Jake

- 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.