+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Display choice field value instead of label

Display choice field value instead of label

2 posts, 0 answered
  1. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    06 May 2014
    Link to this post

    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.

  2. Amanda Shafer
    Amanda Shafer avatar
    198 posts
    Registered:
    12 Oct 2012
    06 May 2014
    Link to this post
    Figured it out.  <%# Eval("BoothSize.PersistedValue")%>  does the trick
2 posts, 0 answered