Hello, i have created an Umbraco Form, and will be sending mail with xslt transformed mail.
But how can i exclude empty fields which are not filled.
My test example is just the default "sendXsltEmailSample.xslt" which right now just include all fields empty or not.
<?xml version="1.0" encoding="utf-8"?>
<h3>Intro</h3>
<p>
Hello, this is a sample email using xslt to convert a record into a custom email
</p>
<h3>the fields</h3>
<ul>
<xsl:for-each select="$records//fields/child::*">
<li>
<h4>
Caption: <xsl:value-of select="./caption"/>
</h4>
<p>
<xsl:value-of select=".//value"/>
</p>
</li>
</xsl:for-each>
</ul>
<h3>The actual xml</h3>
<xsl:copy-of select="$records"/>
Umbraco Forms XSLT all fields where not empty
Hello, i have created an Umbraco Form, and will be sending mail with xslt transformed mail. But how can i exclude empty fields which are not filled. My test example is just the default "sendXsltEmailSample.xslt" which right now just include all fields empty or not.
You can use a 'test'
ex:
Do you also have a solution to exclude specific fields too. I have some fields i want to hide from the email which are filled. ?
Great thanks!
is working on a reply...