- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 09:47 PM
Hi There,
What is the reason for this ? Statement : g_form.getDisplayValue('hr_service')
HR Agent Workspace displays the correct Hr Service when I use this statement in On Change Client Script, where as the same statement returns the HR Case # in the classic Default View.
Appreciate any explanation on this.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 12:01 AM
I used this script in onload client script on HR Total Rewards table and it gave me different value in both native and workspace
So it seems OOB behavior.
For native it gave me HR Case number
For workspace it gave me HR Service value
I also verified with incident table and assigned_to field, so same behavior observed.
Seems it's a platform thing.
If you want display value in reference field then in native you can use this
For workspace you need to do 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2025 11:14 PM
ideally it should give the same value
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 12:01 AM
I used this script in onload client script on HR Total Rewards table and it gave me different value in both native and workspace
So it seems OOB behavior.
For native it gave me HR Case number
For workspace it gave me HR Service value
I also verified with incident table and assigned_to field, so same behavior observed.
Seems it's a platform thing.
If you want display value in reference field then in native you can use this
For workspace you need to do 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