Copied to clipboard

Flag this post as spam?

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


  • Wesley Herpoelaert 52 posts 123 karma points
    Nov 18, 2010 @ 16:57
    Wesley Herpoelaert
    0

    Sort order lost in a form with multiple steps

    Hi,

    When I create a form with multiple steps and add a workflow of type 'Send xslt transformed email' and uses the sample file as the Xslt file, then the sort order of the fields is lost in the e-mail.
    When I use a workflow of type 'send email', everything works fine...

    Is there a way to fix this?

    Thanks

  • Yan 36 posts 56 karma points
    Nov 18, 2010 @ 17:03
    Yan
    0

    Hi Wesley,

    Add this to your email xslt file for sorting:
    <xsl:sort select="@sortorder" order="ascending"/>

    Yan

  • Wesley Herpoelaert 52 posts 123 karma points
    Nov 18, 2010 @ 17:12
    Wesley Herpoelaert
    0

    Hi Yan,

    I tried that, but because I use multiple steps in my form it doesn't work.
    The first field of every step has the sort order 0. So they always come first.

  • Yan 36 posts 56 karma points
    Nov 18, 2010 @ 17:23
    Yan
    0

    right, forget tell you that, you can two more line sort by @pageindex,  @fieldsetindex, first then @sortorder

  • Steve 472 posts 1216 karma points
    Dec 10, 2014 @ 17:47
    Steve
    0

    I have the additional sort lines, but once a condition is used, the order gets mixed for the item with the condition on it.

    <xsl:for-each select="$records//fields/child::*">
    <xsl:sort select="./@pageindex" order="ascending"/>
    <xsl:sort select="./@fieldsetindex" order="ascending"/>
    <xsl:sort select="./@sortorder" order="ascending"/>
    <xsl:sort select="./@caption" order="ascending"/>
  • Steve 472 posts 1216 karma points
    Dec 11, 2014 @ 14:34
    Steve
    0

    The only way I've gotten it to work was by changing the data-type to "number" on each of the sorts.

    xsl:sort select="./@pageindex" data-type="number" order="ascending"/>
                        <xsl:sort select="./@fieldsetindex" data-type="number" order="ascending"/>
                        <xsl:sort select="./@caption" data-type="number" order="ascending"/> 
                        <xsl:sort select="./@sortorder" data-type="number" order="ascending"/>
  • 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