We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13460
    • 47 Posts
    Hey guys,

    I’m fiddling with FormIt by following Mary’s Beginners Guide part 9. I got FormIt up end running but no autoResponse message is received by the sender and nothing in the Error.log

                    [[!FormIt?
                     &hooks=`email`
                     &emailTpl=`sentEmailTpl`
                     &emailSubject=`Message webform with subject: [[+contact_subject]]`
                     &emailTo=`[email protected]`
                     &validate=`contact_name:required:minLength=^4^,
                        contact_email:email:required,
                        contact_subject:required:minLength=^6^,
                        contact_message:required:stripTags`
                     &fiarTpl=`autoResponseTpl`
                     &fiarSubject=`Raymond Uphoff aka myradon bedankt voor uw bericht`
                     &fiarToField=`contact_email`
                     &fiarFromName=`Raymond Uphoff aka myradon`
                    ]]
                    [[$webform]]
    


    webform-chunk;
    
        		<form id="contactform" method="post" action="[[~[[*id]]]]">
        			<p><label for="name">Name</label></p> 
        			<input type="text" name="contact_name" id="name" placeholder="First and last name" required tabindex="1" value="[[!+fi.contact_name]]" /> 
        			<p><label for="email">Email</label></p> 
        			<input type="text" id=email name="contact_email" placeholder="your mailaddress" required tabindex="2" value="[[!+fi.contact_email]]" />
                            <p><label form="subject">Subject<label></p>
                            <input type="text" name="contact_subject" id="subject" placeholder="your subject here" required tabindex="3" value="[[!+fi.contact_subject]]" />
        			<p><label for="message">Your Message</label></p> 
        			<textarea name="contact_message" id="message" tabindex="4">[[!+fi.contact_message]]</textarea> 
        			<input name="submit" type="submit" id="submit" tabindex="5" value="Send Message" />
        		</form>
    


    autoResponseTpl;
    [[+contact_name]], Thank you for your message.  Someone will send you a reply in due course.<br />
    <br />
    For your reference, you left the following message at the Learn MODx Revolution website: <br />
    <strong>[[+contact_message]]</strong><br />
    


    Maybe I’m a bit blind but I don’t see what I’m actually doing wrong. Is there an easy way to do debugging with MODX Revo? You know echo/print some stuff.
      UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
      • 13460
      • 47 Posts
      I solved it! I forgot the FormItAutoResponder hook undecided :’(
      [[!FormIt?
                       &hooks=`FormItAutoResponder, email`
                       &emailTpl=`sentEmailTpl`
                       .............
      

        UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution