It's all about the answers!

Ask a question

Getting value of enum id value in javascript


Marcelo Bilezker (467) | 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.0k115) | 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 (467) | answered Aug 25 '21, 7:56 p.m.

 

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

Your answer


Register or to post your answer.