Copied to clipboard

Flag this post as spam?

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


  • David Park 32 posts 52 karma points
    May 07, 2010 @ 12:02
    David Park
    0

    Checkbox List - Only one item showing

    Hi folks, any help as a matter of urgency would be greatly appreciated.

     

    On submission of my form an XSLT transformed email is sent. For the checkboxlist only one input is being picked up. I am using the following code to display this input on the sent email;

    <xsl:value-of select="$records//fields/child::* [name() = 'question3']/.//value"/>

    I understand I need to loop to get multiple answers (most likely using 'for each') but the markup escapes me as I am new to XSLT. Could someone suggest what I should use to capture multiple inputs?

     

    Many thanks in advance for any responses.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 07, 2010 @ 14:28
    Tom Fulton
    0

    This should do it:

    <xsl:for-each select="$records//fields/child::* [name() = 'checktest']/values/value">
     <xsl:value-of select="."/>,
    </xsl:for-each>
  • David Park 32 posts 52 karma points
    May 08, 2010 @ 19:47
    David Park
    0

    Thanks very much for the help - worked perfectly. This XSLT lark is pretty handy.

Please Sign in or register to post replies

Write your reply to:

Draft