We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8442
    • 48 Posts
    Hi there, I am having some difficulty getting FormIT to work on my site. I have it up and running fine on a different site (same server) but can't get this to work.

    I am using MODX Revolution 2.2.0-pl2 (traditional)

    I have installed the package, set up my email chunk and success page. It never re-directs to the success page and doesn't send the email. I have set up a basic php email test which works fine so the server is definitely sending mail I don;t think it is getting that far. The code I am using is:


    [[!FormIt?
    &hooks=`spam,email,redirect`
    &emailTpl=`email template`
    &emailTo=`[email protected]`
    &redirectTo=`60`
    &validate=`name:required, email:required, text:required:stripTags` ]]
    <form action="[[~[[*id]]]]" method="post" class="form">
    <div class="error">[[!+fi.error.email]]</div>
    <label for="name">Name:</label>
    <input value="[[!+fi.name]]" id="name" class="text" name="name" type="text" tabindex="1" />
    <label for="email">Email:</label>
    <input class="text" value="[[!+fi.email]]" id="email" name="email" type="text" tabindex="3" />
    <label for="comment">Comment:</label>
    <textarea id="otherinformation" name="comment" value="[[!+fi.text]]">[[!+fi.text]]</textarea>
    <input type="submit" name="Submit" id="submit" class="button right" value="Send">
    </form>
    


    My email chunk is:

    <p>This is a response sent by <b>[[+name]]</b> using the enquiry form on this website. The details of the message follow below.</p>
     
    <p>You can use this link to reply: <a href="mailto:[[+email]]">[[+email]]</a></p>
    
    <h2>Message</h2>
    
    <p>Their Name: [[+name]]</p>
    <p>Email Address: [[+email]]</p>
    <p>Message: [[+text]]</p>


    Have I left something key out?

    Thanks in advance