- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 06:08 AM
I have a reference field in our Service Portal Catalog item called Job Title.
When someone changes it, I need to capture the display value, not the reference, then run other Logic based on the title.
I have tried:
var title = g_form.getDisplayBox('job_title').value;
but it doesn't work.
I just find it so silly to have to create a whole new Script Include just to get the Display value. Is this my only option?
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 07:12 AM
Hello,
Refer the below link.
https://community.servicenow.com/community?id=community_blog&sys_id=7b248445db271c94190b1ea66896192f
Thanks,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 07:12 AM
Hello,
Refer the below link.
https://community.servicenow.com/community?id=community_blog&sys_id=7b248445db271c94190b1ea66896192f
Thanks,
Namrata

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 07:52 AM
Hi,
Just getDisplayValue('<field name>'); should work in Service Portal.
var title = g_form.getDisplayValue('job_title');
alert(title);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 05:43 AM
Thanks, everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2022 05:56 AM
Glad to know that you referred to my blog.
I hope you have marked it helpful and also bookmarked it.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader