Can't hide fields in service operations workspace with client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 02:26 PM
So i have these fields that i need to hide when i open a certain task or RITM but the problem is the script just keep getting ignored. It works in the default view but it doesn't work in the Service Operation Workspace
in workspace
In the default view
And here is my catalog client script. I already tried to use "g_form.setDisplay('variables.vs_login')" since the field is in the variables section but it didn't work.
function onLoad() {
var shortDescription = g_form.getValue('short_description');
if (shortDescription == 'Analisar solicitação') {
g_form.setDisplay('vs_login', false);
g_form.setDisplay('vs_email_task', false);
g_form.setDisplay('vs_password', false);
}
}
- Labels:
-
Service Operations Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024 12:57 AM - edited 07-27-2024 12:58 AM
Hi @Jo_o Pedro,
Your code is correct, please select UI type is "ALL" instead of 'Desktop' or "Mobile/Service Portal', then it will be work for Service Operation Workspace.
Please mark helpful & correct answer if it's really worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 07:44 AM
Yes. I always set this field to all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024 02:41 AM
Hi @Jo_o Pedro Put UI Type to All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 07:46 AM
I always set this field to all