Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Apr 06, 2016 @ 21:53
    Connie DeCinko
    0

    How to check value of radiobuttonlist

    In XSLT how do I check the selected value of a radiobuttonlist? I am using it for conditional display and this does not work:

    <xsl:when test="umbraco.library:GetPreValueAsString(slidePlacement) = 'Right'">
    
  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2016 @ 21:53
    Alex Skrypnyk
    0

    Hi Connie,

    What is 'slidePlacement'?

    Can you try like :

       <xsl:if test="umbraco.library:GetPreValueAsString(./slidePlacement)!='Right'">
       </xsl:if>
    

    Cheers

  • Connie DeCinko 931 posts 1160 karma points
    Apr 07, 2016 @ 22:55
    Connie DeCinko
    0

    It works now. Turns out I was reading the wrong value. Doh!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies