- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 12:06 PM
example i have 2 fields one is reference field if i will select category name based on that category group should display .. I used Onchange client script .. like below
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2025 06:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 12:25 PM
Hey @pavana3,
You can try using
g_form.getDisplayBox('your_field').value;
**********************************************
Hope the answer helps!
Happy Learning!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 02:14 AM
This is not working your solution... Nothing is displaying now

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 12:25 PM
Hi,
g_form.getReference will retrieve only sys_id of the reference field and it does not support dotwalking as well.
You can achieve desired output by either converting u_application_category_group to reference or use GlideAjax and get the display value.
If you are not sure about GlideAjax, then refer this url:
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 03:26 AM
2 ways
1) make the "u_application_category_group" field as reference to sys_user_group
OR
2) use GlideAjax and return the group name instead of sysId, I hope you know how to use GlideAjax
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