We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37060
    • 45 Posts
    Hi! I'm having problems with my FormIt form. I've used it many times before with similar hosting, setup etc. and it has always worked fine. All and all a great plugin, thanks!

    This time though there is something wrong. I've cut down the form to a very simple configuration and it seems that when sent, the form tries to do something for a moment and then stops. However, form is not cleared, email is not sent and redirect doesn't take place. I've checked my spam folder, checked that sending mail works with QuickEmail snippet and triple triple checked my FormIt hooks and snippet:

    Using revo 2.2.0-pl2

    [[!FormIt?
       &hooks=`spam,email,redirect`
       &emailTpl=`MyEmailChunk`
       &emailTo=`[email protected]`
       &redirectTo=`2`
       &validate=`name:required,
          email:email:required,
          text:required:stripTags
       
    ]]
    
    
    
    <h2>Contact Form</h2>
     
    [[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
     
    <form action="[[~[[*id]]]]" method="post" class="form">
        <input type="hidden" name="nospam:blank" value="" />
     
        <label for="name">
            Name:
            <span class="error">[[!+fi.error.name]]</span>
        </label>
        <input type="text" name="name" id="name" value="[[!+fi.name]]" />
     
    
        <label for="email">
            Email:
            <span class="error">[[!+fi.error.email]]</span>
        </label>
        <input type="text" name="email" id="email" value="[[!+fi.email]]" />
    
     
        <label for="text">
            Message:
            <span class="error">[[!+fi.error.text]]</span>
        </label>
        <textarea name="text" id="text" cols="55" rows="7" value="[[!+fi.text]]">[[!+fi.text]]</textarea>
     
       
        <div class="form-buttons">
            <input type="submit" value="Send Contact Inquiry" />
        </div>
    </form>
    



    Any ideas?
      • 37060
      • 45 Posts

      As usual, the cause was between the chair and keyboard: forgot to close the hooks.