Display choice field value instead of label

Posted by Community Admin on 04-Aug-2018 14:34

Display choice field value instead of label

All Replies

Posted by Community Admin on 06-May-2014 00:00

Is there anyway in a widget template to show the value of a choice field instead of the label?

For instance I have a field for a module builder type called "Booth Size". The value and label is s10x20l and I use that to create a CSS style for it. IE. class='<%# Eval("BoothSize")%> '  It would be great though if I could create a label to say " 10 x 20 long" and still be able to put the value in the class.

Posted by Community Admin on 06-May-2014 00:00

Figured it out.  <%# Eval("BoothSize.PersistedValue")%>  does the trick

This thread is closed