- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 07:40 AM
We have a requirement to highlight the VIP users in interaction table in Agent Workspace in form view in servicenow.
Let me know if anyone have any idea on how we can implement that.
I have implemented it in incident and interaction table using the client script and style but not in Agent workspace view.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 12:20 PM
Most likely the code you are using on the client script is not good for the workspace environment.
This code works on all environments.
function onChange(control, oldValue, newValue, isLoading) {
if (!g_form.hasField('opened_for'))
return;
if (!newValue)
return;
g_form.getReference('opened_for', ref);
function ref(user) {
if (user.vip == 'true')
g_form.showFieldMsg('opened_for', 'This is a VIP user', 'error');
}
}
If I helped you with your case, please click the Thumb Icon and mark as Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2022 06:43 AM
Most likely the script UI type is ALL. If you want it to apply only to the platform UI then make it Desktop. If you want it on workspace make it Mobile/Service Portal
If I helped you with your case, please click the Thumb Icon and mark as Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 03:34 AM
Hi Sebastian,
Thankyou for the solution. It is working perfectly as expected.