We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25548
    • 6 Posts
    I just downloaded the new FormIT for modx revolution. I followed the example on page http://svn.modxcms.com/docs/display/ADDON/FormIt.Example+1+-+Contact+Page but for some reason, all my text inputs are returning the value ’1’ in the email. However, the textarea is returning the correct text.
      • 28215
      • 4,149 Posts
      Doh. Fixed. Update to FormIt 1.1.1-pl
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 25548
        • 6 Posts
        Thanks for the immediate attention.

        I am not getting emails anymore after installing the update. The redirect is working though.
        I was messing with settings and code so I might have screwed something up too...

        Here is the code I am using, its pretty much exactly copied from the example code.

        [[!FormIt?
           &hooks=`spam,email,redirect`
           &emailTpl=`myContactChunk`
           &emailTo=`[email protected]`
           &redirectTo=`15`
           &submitVar=`submitContact`
        ]]
        
        <h2>Contact Form</h2>
        
        <p>[[+fi.error.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:required" id="name" value="[[+fi.name]]" />
        
            <label for="email">
                Email:
                <span class="error">[[+fi.error.email]]</span>
            </label>
            <input type="text" name="email:required" id="email" value="[[+fi.email]]" />
        
            <label for="subject">
                Subject:
                <span class="error">[[+fi.error.subject]]</span>
            </label>
            <input type="text" name="subject:required" id="subject" value="[[+fi.subject]]" />
        
            <label for="text">
                Message:
                <span class="error">[[+fi.error.text]]</span>
            </label>
            <textarea name="text:required:stripTags" id="text" cols="55" rows="7" value="[[+fi.text]]">[[+fi.text]]</textarea>
        
            <br class="clear" />
            [[+formit.recaptcha_html]]
            [[+fi.error.recaptcha]]
        
            <br class="clear" />
        
            <div class="form-buttons">
                <input type="submit" name="submitContact" id="submitContact" value="submitContact" />
            </div>
        </form>
        
        


        Contact Chunk Code:

        
        <br /><b>[[+subject]]</b><br /> 
        <br />[[+name]] ([[+email]]) Wrote: <br />  
          <br /> 
        
        [[+text]]