- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:32 AM
Hi everyone
How can we remove "Open" state from One Requested Item (RITM) and keep it for the other RITM?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:39 AM
Hi,
For one catalog item that the RITM is associated to or a literal RITM, which is an individual record?
If for a specific catalog item that all RITMs could be for...then you can use an onLoad client script such as:
if (g_form.getValue('cat_item') == 'sys_id_of_catalog_item') {
g_form.removeOption('state', 1);
}
There may be more to this, but the basic idea is that you're using "removeOption" to do it.
More information here: https://servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-options...
You can use UI Policy as well, as mentioned above, but normally, if there's going to be additional scripting, etc. it's best to use Client Script as it's normally expected there. In either case, it can work, but there's more to think through than just trying to hide a state value.
Keep in mind that some out of box processes may switch it to the "Open" state, by default.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:39 AM
Hi,
For one catalog item that the RITM is associated to or a literal RITM, which is an individual record?
If for a specific catalog item that all RITMs could be for...then you can use an onLoad client script such as:
if (g_form.getValue('cat_item') == 'sys_id_of_catalog_item') {
g_form.removeOption('state', 1);
}
There may be more to this, but the basic idea is that you're using "removeOption" to do it.
More information here: https://servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-options...
You can use UI Policy as well, as mentioned above, but normally, if there's going to be additional scripting, etc. it's best to use Client Script as it's normally expected there. In either case, it can work, but there's more to think through than just trying to hide a state value.
Keep in mind that some out of box processes may switch it to the "Open" state, by default.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 11:13 AM
Allen,
Your suggestion works. In addition to "Open" state, we also would like to remove "Work in Progress" and other values. Could you please let us know how to you would modify the code. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 12:24 PM
I figured it out on how to remove additional values from the list.
Thank you