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...
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.
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
Hi Wesley,
Add this to your email xslt file for sorting:
<xsl:sort select="@sortorder" order="ascending"/>
Yan
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.
right, forget tell you that, you can two more line sort by @pageindex, @fieldsetindex, first then @sortorder
I have the additional sort lines, but once a condition is used, the order gets mixed for the item with the condition on it.
The only way I've gotten it to work was by changing the data-type to "number" on each of the sorts.
is working on a reply...