Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys,
I have some issues with a automatic email response with contour when user submit and completes the form.
We have a field with a checkbox list Yes / No and depending on this entry the user will get a specific message.
So if user check the Yes Check box he will receive some instructions and if No is checked then something else will be displayed.
I tried the following but not working, any idea how to achieve this ?
<xsl:for-each select="$records//fields/child::* [caption = 'sendit']//value"> <xsl:choose> <xsl:when test="substring(./value,1,1)='Oui / Yes'"> Send the instructions <xsl:value-of select="."/> </xsl:when> <xsl:otherwise> Do not send instructions </xsl:otherwise> </xsl:choose> </xsl:for-each>
Hi Fuji,
A couple of things wrong here:
<value>
substring(something, 1, 1)
I don't know exactly how the Contour XML looks - maybe you could post just a couple of fields so I can have a look?
/Chriztian
Well am not sure how this will work, basically i need to display some text depending on what user chooses.
If Yes he will get some text from the xslt transformed email and if not something else.
Got this working.
<xsl:param name="records"/> <xsl:template match="/"> <xsl:variable name="employee" select="$records//fields/child::* [caption = 'do you want to get the steps']//value"/> <xsl:for-each select="$records"> <xsl:choose> <xsl:when test="$employee = 'Oui / Yes'"> Steps displayed </xsl:when> <xsl:otherwise> No Steps </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template>
//fuji
is working on a reply...
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.
Continue discussion
Conditional Transformed XSLT
Hi guys,
I have some issues with a automatic email response with contour when user submit and completes the form.
We have a field with a checkbox list Yes / No and depending on this entry the user will get a specific message.
So if user check the Yes Check box he will receive some instructions and if No is checked then something else will be displayed.
I tried the following but not working, any idea how to achieve this ?
Hi Fuji,
A couple of things wrong here:
<value>
elements - but you're then checking the<value>
child of everyone of those?substring(something, 1, 1)
will give you a 1-character string — that will never be equal to a multi-character stringI don't know exactly how the Contour XML looks - maybe you could post just a couple of fields so I can have a look?
/Chriztian
Well am not sure how this will work, basically i need to display some text depending on what user chooses.
If Yes he will get some text from the xslt transformed email and if not something else.
Got this working.
//fuji
is working on a reply...
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.