Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 19, 2013 @ 14:16
    Fuji Kusaka
    0

    Send XSLT Transformed Email

    Hi Guys,

    Can someone point out how do i output the value of a checkbox list in xslt transformed email ?

    I have a field "#Choose Type" where i have 3 checkbox lis, and would like to display according to the one the user checked. 

     

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 19, 2013 @ 15:43
    Tim Geyssens
    1

    You'll just have multipe value elements

    so instead of 

     

    <p>
    <xsl:value-of select=".//value"/>
    </p>
    you'll do 
    <p> 
      <ul>
    <xsl:for-each select=".//value">
    <li><xsl:value-of select="."/></li>
    </xsl:for-each>
    </ul>
    </p>

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 19, 2013 @ 18:42
    Fuji Kusaka
    0

    Not following you here Tim, How do i get the caption here ?

    I have 3 items in my CheckBoxlist being "#Choose Type "

        First Name:<xsl:value-of select="$records//fields/child::* [caption = '#First Name :']//value"/><br/>
          Last Name:<xsl:value-of select="$records//fields/child::* [caption = '#Last Name :']//value"/><br/>
          Email :<xsl:value-of select="$records//fields/child::* [caption = 'Email :']//value"/><br/>
          Choose Type : <xsl:value-of select="$records//fields/child::* [caption = '#Choose Type :']//value"/><br/>

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 19, 2013 @ 19:13
    Tim Geyssens
    0

    Does that output anything?

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 19, 2013 @ 19:18
    Fuji Kusaka
    0

    Nothing actually

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 19, 2013 @ 20:06
    Fuji Kusaka
    100

    Got it working Tim 

    <xsl:for-each select="$records//fields/child::* [caption = '#Choose Type :']//value">
    <xsl:value-of select="."/>
    </xsl:for-each>
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Feb 19, 2013 @ 20:09
    Tim Geyssens
    0

    Great :)

  • 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