Reference field need to populate based on Subject person and HR service in HR case creation page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2025 12:12 PM
On HR case creation page, there is custom reference field - 'Request subcategory' which refer to custom tables 'Global Request subcategories' table, which stores subcategory mapped based on Subject person's country and the associated HR service's Record producer.
In case creation form on selection of subject person and Hr service, this subcategory field should dynamically populate only those filtered record that matched the selected country and record producer.
I have written client script to get the value of subject person and HR service from case creation form and script include to get the multiple sys id of subcategories from global request subcategories table. but unable to set those sysid in request subcategory reference field.
And when i am trying to take input in reference qualifier instead of client script, then it's not getting the current selected Hr service and subject person.
Please support here.
@Ankur Bawiskar - Can you support in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 09:02 AM
I don't think reference qualifier will work on that page as that's not a form where current object is accessible.
it's built using UI builder so you will have to deep dive in that.
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
08-02-2025 11:43 AM
Hello @Ankur Bawiskar ,
If Reference Qualifier will not work, then Can you guide me from client script.
If I am returning query from script include as
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 05:45 AM
Hello,
Is this possible through by below method -
--------------------------------
f I am returning query from script include as