logo

NJP

Category-Subcategory dependency in Service Catalog (Make variables dependent without scripting)

Import · Apr 30, 2020 · article

This post is to show how you can create a dependency between two variables similar to the Subcategory and Category field dependencies on the Incident form. This often comes as a requirement to add to the Create Incident record producer.

1. Create the variable Category:

image

2. Create the variable Subcategory:

image

3. Add this in the Variable Attributes-

"ref_qual_elements=category" without quotes.

That is all. Now, you don't have to create onChange client scripts or custom tables to handle the dependencies on Variables. Don't forget to mark as helpful if it helped :).

View original source

https://www.servicenow.com/community/itsm-articles/category-subcategory-dependency-in-service-catalog-make/ta-p/2301385