Remove Option is not working in Ritm/Sc Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 01:33 AM
Hello Community,
I need a remove a choice of variable of a variable set, so i written on load client script g_form.removeoption() and removed the variable choice, but it removed the option from service catalog, but when a requested is created i am still able to see those options in ritm/sctask , how to remove those options on ritm/sctask.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 01:48 AM
Hi @sireesha19
follow thread it will be helpful
https://www.basicoservicenowlearning.in/2023/08/servicenow-choice-list.html
https://www.youtube.com/watch?v=ySUUMY8dT6o
https://www.youtube.com/watch?v=EOqL_YsOmE4
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 02:03 AM
Hi @Service_RNow , Thankyou for your inputs, I can remove options through on load catalog client script so that those options are not visible on service portal i made script applies on catalog task ,requested items as true in script but when a record is created it is not hiding options in sctask item variables , so can you suggest how to hide them in sc task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 03:21 AM
Hi @James Chun
code :
function onLoad() {
g_for.removeoption('u_needed','yellow');
g_for.removeoption('u_needed','green');
}
not working on sctasks.