Need to filter reference field with CMDB table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi Team,
I have an Incident form with a Subcategory field containing the following options: Hardware, Application, and Database.
Below the Subcategory field, we have a Configuration Item reference field (referencing the cmdb_ci table). I would like to apply dynamic filtering so that:
When the Subcategory is set to Hardware, the Configuration Item field should only show records from the cmdb_ci table where the class is Computer.
When the Subcategory is set to Application, it should only show records where the class is Application.
Similarly, for Database, it should only show records where the class is Database.
and in configuration item we have already some reference qualifier
Could you please guide me on how to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
remove & and colon after javascript and put :
It should be like this
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Post the script include "CustomAffectedCIFilter" so folks can see the logic used.