- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 07:43 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 07:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 07:55 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 08:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2018 08:05 AM
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