We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9486
    • 39 Posts
    Hi, I was getting formit it work earlier, it seemed it took awhile for it to show up in but it would send. Now it is not, I tried Bob's Quickemail snippet and it works great. Dont know what else to try Attaching code here thanks in advance. Yes I did change the email to a bogus one before posting.

    [[!FormIt?
    &hooks=`recaptcha,spam,email,redirect`
    &emailTpl=`sentEmailTpl`
    &emailSubject=`Message  Website`
    &emailTo=`[email protected]`
    &validate=`contact_name:required:minLength=`2`,
          contact_email:email:required,
          contact_message:required,
    number_trailers:required,
    number_buses:required`
    &redirectTo=`13`
    ]]
    
    <h2>Sign Up Form</h2>
    
    <form id="contactForm" class="cmxform" method="post" action="[[~[[*id]]]]">
    <strong>Please use the form below to sign up for the TOB:</strong>
    <div>
    <label for="contact_name">Name </label><em>(required, at least 2 characters)</em><br />
    <input id="contact_name" name="contact_name" size="30" class="required" minlength="2" value="[[!+fi.contact_name]]" />
    </div>
    <div>
    <label for="contact_email">E-Mail </label><em>(required)</em><br />
    <input id="contact_email" name="contact_email" size="30"  class="required email" value="[[!+fi.contact_email]]" />
    </div>
    <div>
    <label for="number of trailers">Number of Trailers </label><em>(required)</em><br />
    <input id="contact_email" name="number_trailers" size="30"  class="required" value="[[!+fi.number_name]]" />
    </div>
    <div>
    <label for="number of buses">Number of Buses </label><em>(required)</em><br />
    <input id="contact_email" name="number_buses" size="30"  class="required" value="[[!+fi.number_name]]" />
    </div>
    <label>
            Group Sizes:[[+fi.error.numbers]]
            <select name="Group Size" 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>
    <option value="four" [[!+fi.numbers:FormItIsSelected=`four`]]>Four</option>
            </select>
        </label>
    <div>
    <label for="contact_phone">Phone </label><em>(optional)</em><br />
    <input id="contact_phone_NA_format" name="contact_phone_NA_format" size="14" class="phone" value="[[!+fi.contact_phone_NA_format]]" maxlength="14" />
    <label for="contact_ext">ext. </label>
    <input id="contact_ext_NA_format" name="contact_ext_NA_format" size="5" class="ext" value="[[!+fi.contact_ext_NA_format]]" maxlength="5" />
    </div>
    <div>
    <label for="contact_message">Show Write Up </label><em>(required)</em><br />
    <textarea id="contact_message" name="contact_message" cols="70" rows="7" class="required">[[!+fi.contact_message]]</textarea>
    </div>
    <div>
    <label for="contact_attachment">Attach a File </label><em>(add picture or graphics to write up)</em><br />
    <input type="file" name="contact_attachment" value="[[!+fi.contact_attachment]]" />
    </div>
    
    <div>
    <input name="submit" class="submit" type="submit" value="Submit"/>
    </div>
    </form>
    </div>
              </div>
      • 31246 ☆ A M B ☆
      • 428 Posts
      A set of unrelated fragments!
      To start you need to bring in the very form of the right kind, it is a lot of mistakes. An example here:http://rtfm.modx.com/display/ADDON/FormIt.Examples.Simple+Contact+Page

      Example of errors:
      You use input with different names but write in the same tag value option
      As there is no CAPTCHA form, you are in a call to specify it.
      The absence of a hidden field in the form of spam, you specify in the call.
      Then you are in the form of attachment, respectively, the form tag you have to add
      enctype = "multipart / form-data"


      A lot of mistakes, try to teach the lesson of the above and try again.
        Valentin Rasulov - Industrial design (Hobbies - Web Development)
        Development not standard projects on CMF MODx Revolution.
        Small sample of extensions
        • 9486
        • 39 Posts
        Thanks man, that exactly what I needed to do... Work through it and understand the calls. I started over, removed what you pointed out and added the enctype and all is well!

        Thanks again!!!