Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

client script and Display value

Nauman Chaudhry
Tera Contributor

client script on incident

 

I am getting back state value as 7 when I use g_form.getValue('state')  but I need the display value. When I use

function onLoad() {

   //Type appropriate comment here, and begin script below

              

               var stateName = g_form.getDisplayValue('state');

   alert('My state is ' + stateName); 

}

I get back incident number I guess an object. How can I can I get the display value in client script.

 

7 REPLIES 7

@Nauman Chaudhry any follow up required or all working ?

if working close the thread by marking the answer correct and push it to solved queue

Thanks

good day !

RaghavSh
Mega Patron

use:

g_form.getDisplayBox('state').value;


Raghav
MVP 2023
LinkedIn

This does not alert me at all.