We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14672
    • 2 Posts
    Hi Guys,

    I need a dummy proof guide to eForm. Why is the form not sending?

    1) I have created a page with this code inside it...

    [[eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedbackForm` &report=`eFeedbackReport` &gotoid=`19` &vericode=`1`]] 


    2) I have created this thanks page
    Thank You!
    We do appreciate your feedback. Your comments have been submitted to our office and hopefully someone will bother to actually read it. 
    
    Please be assured that we will do our best not to ignore you, but if today's a Monday please try again in a few days. 


    3) I have created this chunk called eFeedbackForm

    <p><span style="color:#900;">[+validationmessage+]</span></p>
    <form method="post" action="[~19~]">
    	<input type="hidden" name="formid" value="feedbackForm" />
    	
    	<p><label accesskey="n">Your Name</label>
    	<input type="text" name="Name" maxlength="60" eform="Your Name::1" /></p>
    
    	<p><label accesskey="e">Your Email Address</label>
    	<input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
    	
    	<label accesskey="s">Subject</label>
    	<select name="subject">
    		<option value="Feedback">Website feedback</option>
    		<option value="Support request">Support request</option>
    		<option value="Feature Request">Feature request</option>
    	</select>
    	
    	<p><label accesskey="c">Comments</label><br />
    	<textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
    
    	<p><label">Would you like to be on our mailling list?</label>
    	<input type="radio" name="list" value="Yes" eform="Mailling List::0:" /> Yes 
    	<input type="radio" name="list" value="No" /> No </p>
    
    	<p>
    	Please enter the verification code below: (to prevent spam)<br />
    	<img src="[+verimageurl+]" alt="verification code" /><br />
    	<input type="text" name="vericode" size="20" />
    	</p>
    	
    	<p><input type="submit" name="submit" value="Send Feedback"></p>
    </form>
    


    and this Chunk called eFeedbackReport

    <p>This is a response sent by [+Name+] using the feedaback form on the website. The details of the mesage follow below:</p>
    <table>
    <tr valign="top"><td>Name:</td><td>[+Name+]</td></tr>
    <tr valign="top"><td>Email:</td><td>[+email+]</td></tr>
    <tr valign="top"><td></td><td>[+subect+]</td></tr>
    <tr valign="top"><td>comments:</td><td>[+comments+]</td></tr>
    </table>
    <p>Would [+name+] like to be on our mailing list? <strong>[+list+]</strong></p>
    
    <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE:[+subject+]">[+email+]</a></p>
    


    The form works and goes to the thanks page but is not sent to my email. I dont think the form is talking to the snippet, I am really unsure.

    PLEASE can you let me know what I am doing wrong.

    http://www.first-aidtrainingservices.co.uk/18

    Thank you so much. Jonny
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try calling the snippet uncached
      [!eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedbackForm` &report=`eFeedbackReport` &gotoid=`19` &vericode=`1`!] 

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 14672
        • 2 Posts
        Hi Sottwell,

        It was already uncached. Can I pm you my login details to have a quick look at it? Or could it be something else obvious?

        Many Thanks
        Jonny