I have a Contour form (Razor Macro) with conditional fields and I am using the XSLT transformed email workflow to display my field results in an email, but some of the fields are not displayed the the order they are on the form within the email. Here is my XSLT file that I am using; could someone take a look at it and see why some fields are not in the order that I placed them on the form?
Thanks Chrizitian! That did the trick. Another quick formatting question though; Some of my form fields have entries using symbols like quotations, so the email comes back with " instead of ". What would I do to display the quotes in the outputted email?
Sorting of Form Fields not Working Correctly
I have a Contour form (Razor Macro) with conditional fields and I am using the XSLT transformed email workflow to display my field results in an email, but some of the fields are not displayed the the order they are on the form within the email. Here is my XSLT file that I am using; could someone take a look at it and see why some fields are not in the order that I placed them on the form?
Hi Steve,
This is very likely because the default sort data-type is "text", which means that "10", "11" & "12" etc. will come before "2".
There's an easy fix — just add the
data-type="number"
attribute and they should move into place:/Chriztian
Thanks Chrizitian! That did the trick. Another quick formatting question though; Some of my form fields have entries using symbols like quotations, so the email comes back with " instead of ". What would I do to display the quotes in the outputted email?
Hi Steve,
Great :)
Ah, that's XSLT's automatic escaping doing its thing... you can disable that with an extra attribute on the
<xsl:value-of />
instructions, e.g.:/Chriztian
is working on a reply...