How to hide or disable choices in a dropdown list on SC_TASK?

cfrazer
Giga Contributor

Is there anyway to filter out certain choices within a dropdown? I have a workflow that creates a new SC_TASK for each stage it passes through. Order Item -> Configure Item -> Deliver Item

For example, I don't want 'Closed Skipped' to appear on Deliver item or Configure item, but I want it on Order Item.

find_real_file.png

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

You can write a onload client script on sc task and check the short description of catalog task and remove the vaelue

 

function onLoad() {
var sd = g_form.getValue('short_description');
if(sd=='Provide requested service') // short description of task
{
alert("inside");
g_form.removeOption('state',7); //closed skipped remove
}

}

Regards
Harish

Shweta KHAJAPUR
Tera Guru

Hi,

You  can write onLoad  client script on request item as below,

function onLoad() {
var stage=g_form.getValue('stage');
if(stage==' Configure Item' || stage=='Deliver Item' )
{
g_form.removeOption('state',7);//your close skipped value in place of '7'

}
}