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.

Display Label instead of value of choice list in email script

davidshin
Kilo Explorer

I am trying to display the Label instead of the value. I have the current email script and it is displaying 1 instead of Open

template.print("State: " + gr.state+ "<br />");

1 ACCEPTED SOLUTION

sumeet_n
Mega Guru

Try



template.print("State: " + gr.state.getDisplayValue()+ "<br />");


View solution in original post

3 REPLIES 3

sumeet_n
Mega Guru

Try



template.print("State: " + gr.state.getDisplayValue()+ "<br />");


Thanks.



For some reason I thought getDisplayValue gets the value...


When i am trying to print the value of drop down its not working  template.print(current.getValue(u_contry));