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
Kilo Guru

Try



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


View solution in original post

3 REPLIES 3

sumeet_n
Kilo 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));