g_form.getDisplayValue() giving request number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 05:37 AM
g_form.getDisplayValue ('field_name') returning request number instead of the display value of the glide list field. Its giving display value in Catalog client script but not in core UI client script. How to get the display value of the glide list field?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 06:22 AM
You are doing it right. I just checked in my PDI and this seems to be broken. Doing a g_form.getDisplayValue() (without any parameters) should be showing the number. Doing it with a parameter should give the display value of the field, according to the developer reference (https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/client/c_GlideFormAPI#GF-getDis...)
What version are you on? My PDI is Washington Dc Patch 4 Hot Fix 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2025 12:37 PM
Hi,
Is the issue still there?
I am experiencing the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Does anyone have solution for this ? I am experiencing the same. Please find below the client script with onChange I am using.
I am getting the incident form number on which I am changing the field to trigger this client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
same issue I am facing