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

Arindam Bose
Giga Contributor

Can you please provide the code for the same ?

Mohit Kaushik
Mega Sage
Mega Sage

Hi You can write an onChange client script so whenever the assignement group changes and contains 'tools' into it then you can add or remove the choices by using the code mentioned in the below link:

https://www.servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-opt...

 

hope this solves the puropose

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)