Created
May 6, 2014 18:26
-
-
Save ronnieduke/6841ead1b96b89410d73 to your computer and use it in GitHub Desktop.
How to send a copy of a Mura form to the form submitter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Drop this into your site eventhandler.cfc ---> | |
<cffunction name="onAfterFormSubmitSave" output="true"> | |
<cfif $.event('formid') EQ '{ID of the Mura form}'> | |
<!--- Get the form result ---> | |
<cfset formBean = $.event().getValue('formresult')> | |
<cfmail | |
from = "e-mail address" | |
to = "#formBean.EMAIL#" | |
subject = "Thank you!" | |
type="HTML"> | |
<p>Thank you for your form submission</p> | |
<p>You submitted the following:</p> | |
<p> | |
#formBean.NAME#<br> | |
#formBean.TITLE#<br> | |
etc, etc | |
</p> | |
</cfmail> | |
</cfif> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you for this gist. it was very helpful