Remove Option is not working in Ritm/Sc Task

sireesha19
Tera Contributor

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.

9 REPLIES 9

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.

James Chun
Kilo Patron

Hi @sireesha19,

 

Can you share the code/configuration of the catalog client script?

Hi @James Chun 

code :

function onLoad() {

g_for.removeoption('u_needed','yellow');

g_for.removeoption('u_needed','green');

}

not working on sctasks.