g_form.removeOption not working on the Agent Workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 01:05 AM
I am trying to remove and Option from the State field, the below code is working as required on the Native UI but when I switch over to the Sercurity Incident Workspace this function is not removing the Option from the state dropdown. The option that I want to remove has a value of 3 and a DisplayValue of 'Closed'.


function onLoad() {
g_form.removeOption('state', 3);
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2025 11:53 AM
It is marked as Global, but still its not working