How to hide or disable choices in a dropdown list on SC_TASK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 06:22 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 06:57 PM
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
}
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2018 10:18 PM
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'
}
}