The CreatorCon Call for Content is officially open! Get started here.

g_form.getDisplayValue() giving request number

Elizabath1
Tera Contributor

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?

 

 

 

 

4 REPLIES 4

JenniferRah
Mega Sage
Mega Sage

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. 

quiksilver
Mega Guru

Hi,

 

Is the issue still there? 

 

I am experiencing the same

shariquesha
Tera Contributor

Does anyone have solution for this ? I am experiencing the same. Please find below the client script with onChange I am using.

ClientScript.png

I am getting the incident form number on which I am changing the field to trigger this client script.

shariquesha
Tera Contributor

same issue I am facing