Get the value of reference field using glideajax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 10:49 PM
How to get the display value of reference field in script include and use it in client script. I have done it using getdisplaybox but it is not supported or throws an error in some places, hence would like to do it through glideajax.
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 10:51 PM
Hi
You can pass the sys_id to script include and get the display value by Gliding the table for which the sys_id is.
Refer this thread for async GlideAjax -https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/reference...
Regards
Omkar Mone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 10:53 PM
This thread might be something you're looking for -
https://community.servicenow.com/community?id=community_blog&sys_id=f8ccee25dbd0dbc01dcaf3231f961978
Regards
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2019 01:12 AM
Hello SNow,
Have you tried with getDisplayBox('field_name').value ?
For GlideAjax and client script code:
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade