I am trying to show the subcategories that are specific for one category, but it is showing all the sub categories, I am using onChnage client script in the Category field on the incident table.Please help, Thanks

Maala
Kilo Contributor

I am trying to show the subcategories that are specific for one category, but it is showing all the sub categories, I am using onChnage client script in the Category field on the incident table.Please help, Thanks

1 ACCEPTED SOLUTION

i tried the same, its working as expected. see below:

find_real_file.png

find_real_file.pngEnsure that category choice has been created with the value Enterprise Support, if not create one by cliking configure choice on Category->select the category->then add choice to the subcategory as User Error. This worked for me.

 

Thanks,
Rahul

View solution in original post

11 REPLIES 11

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

You don't need an onChange script. You can set that up using the dependent field on the subcategory field. On the choice, there will be a dependent value where you will enter the category that it should show on.

find_real_file.pngfind_real_file.pngfind_real_file.png

Hi Miguel,

Thanks for your quick response.
I leant something new today. Thanks.

When I tried your suggestion, It does not load any subcategories for a specific Category.
After I have set the dependent to Category,

All other Categories show correctly
But the new Category ‘ Enterprise support’ is selected, nothing shows in the sub category.
These are the sub categories that need to be shown when Enterprise Support is populated in Category.

Any advise?Thanks

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

You have to tie the choices in the subcategory to the value in the category field. Ensure that category is entered the Cataogy choice tab.

find_real_file.png

here is a choice in the subcategory that is tied to the "hardware" category. You have to associate all choices to a category. That is how the system knows what to show based on the category

find_real_file.png

 

Hi @miguel Donayre,

 

i Also want the same, and i did but i want little more....

there is one more option under sub-category that is "other", and i want to show this option on every category choice how can i do these?

 

Thankful of you in advance.