We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28456
    • 83 Posts
    I try to make a mailform whit FormIt but the page hangs and it look likes nothing happened.
    I use the Snippet Tag from the Formit Example page and i use the form from the example page.
    I also install QuickEmail package and it say succesfull and i receive a email after the test.

    Link to the form.
    http://www.daily-dairy.com/dev/contact.html

    link to the QUicktest
    http://www.daily-dairy.com/dev/mailtest.html

    Hope someody can help me

    Stefan

    This question has been answered by BobRay. See the first response.

      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Can you post your code? It's not possible to tell what's wrong from either of those links and your form is clearly not exactly the same as the example. Chances are there's some kind of validation error with the new fields.

      Looking for the full formIt call and form, and the contents of your email chunk.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 28456
        • 83 Posts
        Thanks. This is de code i used.
        I hope you can help me

        regards
        Stefan

        [[!FormIt?
           &hooks=`recaptcha,spam,email,redirect`
           &emailTpl=`MyEmailChunk`
           &emailTo=`[email protected]`
           &redirectTo=`1`
           &validate=`name:required,
              email:email:required,
              subject:required,
              text:required:stripTags,
              numbers:required,
              colors:required`
        ]]


        <h2>Contact Form</h2>
         
        [[!+fi.validation_error_message:notempty=`<p>[[!+fi.validation_error_message]]</p>`]]
         
        <form action="[[~[[*id]]]]" method="post" class="form">
            <input type="hidden" name="nospam:blank" value="[[+fi.nospam]]" />
         
            <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="subject">
                Subject:
                <span class="error">[[!+fi.error.subject]]</span>
            </label>
            <input type="text" name="subject" id="subject" value="[[!+fi.subject]]" />
         
            <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>
         
         
            <label>
                Numbers:[[+fi.error.numbers]]
                <select name="numbers" value="[[!+fi.numbers]]">
                    <option value="">Select an option...</option>
                    <option value="one" [[!+fi.numbers:FormItIsSelected=`one`]]>One</option>
                    <option value="two" [[!+fi.numbers:FormItIsSelected=`two`]]>Two</option>
                    <option value="three" [[!+fi.numbers:FormItIsSelected=`three`]]>Three</option>
                </select>
            </label>
         
            <label>
                Colors:[[!+fi.error.colors]]
                <input type="hidden" name="colors[]" value="" />
            </label>
            <ul>
              <li>
                <label><input type="checkbox" name="colors[]" value="red" [[!+fi.colors:FormItIsChecked=`red`]] /> Red</label>
              </li>
              <li>
                <label><input type="checkbox" name="colors[]" value="blue" [[!+fi.colors:FormItIsChecked=`blue`]] /> Blue</label>
              </li>
              <li>
                <label><input type="checkbox" name="colors[]" value="green" [[!+fi.colors:FormItIsChecked=`green`]] /> Green</label>
              </li>
            </ul>
         
            <br class="clear" />
            [[!+formit.recaptcha_html]]
            [[!+fi.error.recaptcha]]
         
            <br class="clear" />
         
            <div class="form-buttons">
                <input type="submit" value="Send Contact Inquiry" />
            </div>
        </form>
        


        This is the Formit Email Chunk.
         
        <br />[[+name]] ([[+email]]) Wrote: <br />
         
        [[+text]]
        
        • discuss.answer
          • 3749
          • 24,544 Posts
          I would remove the recaptcha and spam hooks and the validate property for now. Get it working to send email, then add them back one at a time.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 28456
            • 83 Posts
            @BobRay
            Yes that works. Thanks

            Stefan