How to set up sub category based on category in incodent form. ex - sub-category should be displayed based on specific category

Amit95
Kilo Contributor

When you select category as Hardware - it should only display sub category related to Hardware.

if you select category as Software - it should only display sub category related to Software.

15 REPLIES 15

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Amit,

If this is for normal table then this should be achievable easily

check below link for step

ServiceNow Choice List Dependencies

If this requirement is for Service Catalog then you can setup it using below links

ServiceNow - Dependent Variables on Record Producer in Service Catalog

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur for sharing the link.

Amit95
Kilo Contributor

However when the category is made dependent it doesnot show any sub-category. 

ex- if none is selected - it shows all values in the subcategory - however if i select any category as hardware or software and then no option is displayed in sub-category.

please let me know if there is any way to take remote and help me understand the issue. 

One workaround you can use to prevent Sub-categories being chosen before a Category is to either hide the field or make it read only until a Category has been chosen. This way you don't have to try to reverse engineer what Categories to show dependent upon what Sub-Category has been chosen.

Not only do you have to make the Sub-Category dependent on Category, you must also make the choice values within the Sub-Category choice list dependent upon their corresponding Category values.

How to make the choice values within the Sub-Category choice list dependent upon their corresponding Category values.