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 All,I've got a form generated from contour but my client wants an email to be sent to a specific email address dependent on the checkbox in the form is selected.Does anyone know how this could be achieved?ThanksTom
You on skype i did something simliar very recently
Yep, I'm on skype (now :)). user tom.maton1980
Having the same issue. Could you point me in the right direction.
Would be nice if the solution could be shared in here so others could benefit.
The best I could come up with was to send an XSLT transformed email. I have the Contour form workflow set to email my own email address, then within the XSLT send an extra email based upon a field value.
The below code would work for sending an email based on what was selected from a Dropdown List called 'Super Dropdown List'
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="xsl msxsl user umbraco.library">
<xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="utf-8" />
<xsl:param name="records" />
<!--Read Dropdown List Value into variable -->
<xsl:variable name="dropdownlistValue" select="$records//fields/superdropdownlist//value"/>
<!-- Read form contents into a variable ready for sending -->
<strong><xsl:value-of select="./caption" />: </strong><xsl:value-of select=".//value" /><br /><br />
<!-- Send email -->
<xsl:when test="$dropdownlistValue = 'Option 1'">
<xsl:when test="$dropdownlistValue = 'Option 2'">
<!-- A reminder for yourself -->
<p>Contour form submitted!</p>
Hope this helps anyone that has run into this problem.
I'll try and get something up in the Wiki by the end of the day of what I've done thanks to Ismail's help
I've added to the wiki - Extending Contour, sending email dependent on form selection
Hope this helps in what you are trying to achieve.
That wiki is no longer available; here is the archived page:
Better yet, this may be the solution:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted