- 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:10 PM
client script is on which table?
please share some details.
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
Hi @Dharma Liyanag ,
Where are you writing the code? HR Service does not hold any case value.
Share your on change client script.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 07:25 AM
Hi Runjay,
The client script to display custom subcategory list based on the hr_service ( some Record Producer variable values ); This is created in HR Case form ( sn_hr_core_case )

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2025 07:29 AM
@Dharma Liyanag I recommend reporting this issue to ServiceNow support as they may create a problem ticket to address this issue in the future release.