- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 09:29 PM
hello
i need a script in incident form for choosing specific choice in category field then it will filter out those ritm numbers as choice list in that requested item field which have two specific catalog item
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 02:10 AM
then update the ref qualifier
javascript: var query; if(current.subcategory.getDisplayValue() == 'Delayed Delivery') query = 'short_descriptionLIKE' + 'Request a Client Device,Break & Fix device'; query;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 09:31 PM
requirement is not clear. Please explain with screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 09:39 PM
Hello @Ankur Bawiskar
for choosing of sub category variable as delayed delivery then Filter the Requested Item variable list for only "Request a Client Device" and "Break & Fix device"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 11:05 PM
you can use advanced ref qualifier on Requested Item field
something like this
javascript: var query; if(current.subcategory.getDisplayValue() == 'Delayed Delivery') query = 'cat_item.nameIN' + 'Request a Client Device,Break & Fix device'; query;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 01:25 AM
hello @Ankur Bawiskar
there is no specific catalog item field in reference ritm table. so we have to take short description field despite of cat_item field.
