How to make specific states appear based upon requested Catalog Item

Maurice Murphy
Tera Guru

Hello all,

I am trying to determine how I can utilize field dependency (or some other platform functionality) to make it so certain states appear on a requested item based on the catalog item requested.

I have a very specific request which has required the creation of custom states as per the business's request. However, I do not want these custom states to be visible on all requested items, only requested items which were generated off of a specific catalog request.

I have tried to create the custom states and then set their dependent value to both the name of the catalog item (as I have seen in some videos) as well as so just "cat_item", however it does not appear to be working.

Am I misunderstanding how "Dependent value" works? 

Thank you for your time and your help.

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello

Just write an onload client script-

if(cat_item!='sysid of your catitem')

{

g_form.removeOption('state','stateoptionvalue','stateoptionlabel');

}

Please mark answer correct/helpful based on impact

View solution in original post

2 REPLIES 2

Saurav11
Kilo Patron
Kilo Patron

Hello

Just write an onload client script-

if(cat_item!='sysid of your catitem')

{

g_form.removeOption('state','stateoptionvalue','stateoptionlabel');

}

Please mark answer correct/helpful based on impact

This is not working for me.

I have the same requirement. I have added a new state option on sctask table. I only want to show this state option for a catalog item.