Dependent value not working correctly?

Gokulraj1
Kilo Contributor

Hi team,

In incident form I am having a "category" field as reference type .So based an category the "subcategory 1" and "sub category 2" will select.

But when I click the "category" value I am not able to see the "subcategory 1" and "sub category 2"

How to fix this??

 

Regards,

Gokulraj S

 

1 ACCEPTED SOLUTION

Could you please add the sys_id under the dependent value of choices, since category is the reference field. Thanks

View solution in original post

9 REPLIES 9

palmen
Tera Guru

Are you using the OOTB category/subcategory fields?
If I'm not wrong the OOTB versions of these fields are choice lists and not reference fields.

If you are using custom created reference fields, have you made sure each subcategory is linked to the category?

You can look at the OOTB field Configuration Item on the Incident form and you see it's dependent on Company. If you look at a company you can display the related list for configuration items and you'll be able to see the related configurations item to that company.

Gokulraj1
Kilo Contributor

Yes you are correct but I am not using the OOB, my requirement is to make category is to searchable field.So,I have created new table called "category" and maintained all the category values

Hi,

Is the Subcategory 1 and 2 is also reference?

If not then you can set the dependent value in the choices.

 

Thanks
Shashikant

Hit Helpful or Correct on the impact of response.

For reference fields you can write a reference qualifier to return only the subcategories related to the category.

See this link and the advanced reference qualifier section for info about how to create it

https://docs.servicenow.com/bundle/kingston-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html