I am applying client script for setDisplayValue on "state" field of incident form but the script is not runnign on it what can be the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 06:26 AM
Please help me out regarding this I am novice so learning things.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 06:29 AM
Could you describe what you're trying to accomplish here? setDisplayValue() isn't supported client side so you won't be able to use it there.
Client Side GlideRecord - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 07:15 AM
use g_form.setValue() on client side and glide record on server side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 06:42 AM
g_form.setValue() only brings over the sys_id value if it's a reference field. How do you grab the display value on client side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 08:04 AM
use getReference with call back
See the eg here
https://www.servicenowguru.com/scripting/client-scripts-scripting/gform-getreference-callback/