Display choices for a drop down based on the Assignment group

Arindam Bose
Giga Contributor

Hello All,

I have a requirement to Display some additional choice list if an assignment group contains "tools" in the assignment group name.

To describe further we have added 2 new On Hold reason options to the Field On hold reason for incidents. The requirement is to display those additional choices only when an assignment group name contains "tools" in it , otherwise display the choice list without those 2 new choices. 

Please help me out on this. 

1 ACCEPTED SOLUTION

vkachineni
Kilo Sage
Kilo Sage

Try a UI policy. Change according to your requirements.

find_real_file.png

find_real_file.png

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

View solution in original post

6 REPLIES 6

vkachineni
Kilo Sage
Kilo Sage

Try a UI policy. Change according to your requirements.

find_real_file.png

find_real_file.png

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

This does not seem to work. Please help.

Hello vkachineni,

Yes this worked but with little adjustments as below : 

 g_form.addOption(<fieldName>, <choiceValue>, <choiceLabel>, <targetIndex>); 
 
//‘targetIndex’ is an optional parameter.
 
Thank you so much for your help.
 
 

ggg
Giga Guru

in the onLoad client script you can use:

g_form.add_option(field, value) to add an option to a drop down

so you pseudo code is:

if (assignment group contains 'tools')

    g_form.add_option(field name, option to add);