How to hide choices from choice list using client script onchange

swathigangadhar
Tera Expert

How to hide choices from choice list using client script onchange, i want to hide few choices in subcategories when category is changed, i tried using g_form.removeOption('subcategory', '7'); but no luck, how to solve this?

16 REPLIES 16

Hi,



OOB in incident subcategory values are dependent on category values. In your case if you don't want some subcategories for the category 'Client Application', you can right click and configure the choices for subcategory and remove those subcategory which you don;t want.


This will provide the desired result you are looking for.


Regards,


Karthik


Hi,



Try Removing the space between Single Quotes and the your new value "Client Application" as seen in your screen shot below:



Category.png



Hope this helps. Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke