How to hide a choice from a list in SOW

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 10:46 PM - edited ‎11-11-2022 01:45 AM
I have read that g_form does not work in workspace.
Ideally would have used the g_form.removeOption, but what can I use alternatively to achieve this.
Places where I would like to apply this is on the State field to prevent a ticket from directly being updated to Closed.
Both in record and list view.
**Update
Sorry for the confusion.
The article I read was for Agent Workspace and I am asking for Service Operations Workspace.
I just tried now and it worked but not in the list Edit.
But the problem still remains as an incident can be directly updated to Closed by updating via List Edit in SOW
**Update 2
attached screenshot of where the state was not removed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 11:47 PM
@Community Alums
g_form works but addOption() or removeOption() doesn't work on workspace
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2022 01:27 AM
@Ankur Bawiskar
Sorry for the confusion, the article I read was about Agent Workspace and my question was for SOW.
So the removeOption() worked,, but there was still a way to access the Closed stated via the list Edit which I also want to remove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 11:48 PM
Hi @Community Alums ,
You can refer below thread.
add/remove options with client script not working in agent workspace
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2022 01:31 AM
Hi @Gunjan Kiratkar ,
I was able to accomplish one part but still need to remove the Closed state as a choice in the list edit in SOW.
The thread seems to be for removing states within the record.