- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:38 AM
Hey,
Could anyone please advise on how to get the display value for any reference field (CI field) using the onSubmit Catalog Client script?
Using g_form.getValue('u_device_ref_1'), I am getting the sys_id of this field
And with g_form.getDisplayValue('u_device_ref_1'), I am getting blank value.
Thanks in Advance,
Rathika.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:56 AM
HI Rathika,
You can use g_form.getDisplayBox('field_name');
Thanks
Prashant
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2020 09:58 AM
This lass the complement ".value":
This correct:
Use (g_form.getDisplayBox('field_name').value);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 04:00 AM
Hi Mihir/Prashant,
Thanks for your help! It worked for me...
Thanks,
Rathika.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 11:23 PM
Hi,
Using getDisplayBox(), I am able to get the display value on reference field in desktop version. But it is not working in mobile version.
Do you have any thoughts on how can we achieve this functionality in mobile version.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2017 01:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2020 11:36 PM
getDisplayBox() is not available in g_form in new york version