- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:27 AM
Hi,
So I had a requirement to change the drop down values for the 'resolution code' field on the incident form. The new fields to be added were these below and I was able to do that easily.
solution provided
workaround provided
no resolution provided
The previous options that were there, they did not want them to be user selectable (they needed to be hidden on load) but be available for integrations. I was able to do that using a client script below
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.removeOption('close_code',"Solved (Work Around)");
g_form.removeOption('close_code',"Solved (Permanently)");
g_form.removeOption('close_code',"Solved Remotely (Work Around)");
}
This entire thing is working fine in UI16 but not working in service operations workspace. What can I do to fix it please?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:39 AM
Also Make sure that UI type on the client script has ALL Selected in it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:33 AM
Looks like you are using the remove option with the labels, can you try the same with value?
g_form.removeOption('field name', 'choice value');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 02:39 AM
Also Make sure that UI type on the client script has ALL Selected in it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 04:01 AM
Hi @Anurag Tripathi the value and the label is the same. But selecting the UI type to all has resolved the issue. thanks so much!