It's all about the answers!

Ask a question

Getting value of enum id value in javascript


Marcelo Bilezker (465) | asked Aug 25, 6:20 p.m.

 I am inside a javascript validation function, 


validate: function(attribute, workItem, configuration) ;

I get the enum id with 
var enumId = workItem.getValue("Same validation level");

How can i get the String associated with the enumId? 




Accepted answer


permanent link
Davyd Norris (1.1k8) | answered Aug 25, 7:33 p.m.

workitem.getLabel("Same validation level");

Marcelo Bilezker selected this answer as the correct answer

One other answer



permanent link
Marcelo Bilezker (465) | answered Aug 25, 7:56 p.m.

 

getLabel("zzz")... so Obvious,,,, Thanks!

Your answer


Register or to post your answer.