Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gianluca 56 posts 79 karma points
    Sep 23, 2010 @ 10:26
    Gianluca
    0

    radiobuttonlist value

    Hello everybody,

    I created a new datatype to define a radio button list. I have three values in it. 

    Umbraco assigned a numeric value to each string I defined.

    How can I get the text instead of the value?

    Thanks in advance,

    Gianluca.

  • Kim Andersen 1447 posts 2197 karma points MVP
    Sep 23, 2010 @ 10:47
    Kim Andersen
    0

    Hi Gianluca

    You can grab the text by using the Umbraco XSLT-extension called GetPreValueAsString.

    Like this:

    <xsl:value-of select="umbraco.library:GetPreValueAsString($currentPage/YourAliasHere)" />

    /Kim A

  • Gianluca 56 posts 79 karma points
    Sep 23, 2010 @ 13:39
    Gianluca
    0

    Thanks a lot Kim! 

  • Kim Andersen 1447 posts 2197 karma points MVP
    Sep 25, 2010 @ 15:07
    Kim Andersen
    0

    You are very welcome Gianluca. Glad I could help :)

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft