Copied to clipboard

Flag this post as spam?

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


  • J 445 posts 862 karma points
    Jul 24, 2014 @ 17:34
    J
    0

    Send XSLT transformed email fields not in order

    I am using the option to send an email using the Send XSLT transformed option.

    I am using the standard XSLT (the example file given when you select the option).

    The problem i have is when the email is received all the fields are in the incorrect order - how could i have the fields as they are displayed on the form itself?

    Thanks

  • Giovanni Sidoel 94 posts 233 karma points
    Jul 30, 2014 @ 15:18
    Giovanni Sidoel
    1

    Try this in your XSLT or in the standard umbraco XSLT:

    <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"/>
    <!--Do stuff-->
    </xsl:for-each>
Please Sign in or register to post replies

Write your reply to:

Draft