How to dynamically set reference qualifier to the reference field on ui page in serviceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 11:50 AM
Hi,
I have created an ui page which has 2 reference fields :
1. Project:
2. Epic related to above project:
Attaching screenshot for reference:
I want to show the epics related to project selected in 1st reference field in a 2nd reference field. I can get sys_id of above selected project but not able to pass this dynamically to "query" parameter of second reference field.
Here is my code:
<! -- 1st reference field: -->
In second reference field we need to pass query based on selected project but not able to understand how.
Is there any way to achieve it?
Thanks
Pooja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 05:55 AM
Hello @Pooja Mahamuni
Please check the below thread it might be helpful for you
https://www.servicenow.com/community/developer-forum/change-ui-reference-query/m-p/1729102
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 06:00 AM
I shared solution for this 7-8 years ago and it still works, check below link and see my response
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
06-08-2025 10:54 PM
Hope you are doing good.
Did my reply answer your question?
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