Avatar

Correct answer by
Community Advisor

Hello Tejashri,

The values in enumeration are numeric only. You can refer to the image below to get the exact status.

1858840_pastedImage_1.png

And in the java-script you can do something like this.

if(enumValue.@label=='1'){
var deliveryStatus='sent';
}

if(enumValue.@label=='2'){

var deliveryStatus='failed';

}

and so on.

Then you can use the deliveryStatus variable where ever you want to use to get the label.

Thanks

View solution in original post