It's all about the answers!

Ask a question

Getting value of enum id value in javascript


Marcelo Bilezker (46112) | asked Aug 25 '21, 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 (2.4k217) | answered Aug 25 '21, 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 (46112) | answered Aug 25 '21, 7:56 p.m.

 

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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.