3 users online. Create an account or sign in to join them.Users
Form in master utility not working
This is an open discussion with 2 replies, filed under General.
Search
Maybe you are in the wrong context node? Have you tried using /data/events/send-mail in your for-each?
Hey Nils,
That’s it, thanks a lot for your help!
Create an account or sign in to comment.
Hello,
I am currently building a website with a simple contact form that appears at the bottom of every (!) page.
The form works i.e. it does send an email to me but it does not return any @result. When the user enters nothing and hits “Send”, nothing happens. No feedback, nothing. This is my code:
<xsl:for-each select="events/send-email"> <p class="{@result}"> <xsl:choose> <xsl:when test="@result = 'success'">E-mail sent.</xsl:when> <xsl:otherwise>Please fill in all fields.</xsl:otherwise> </xsl:choose> </p> </xsl:for-each>I wonder if this is because the above code is located in my master utility and then imported into the various pages?
If anyone can help, please let me know. Thanks!