We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for FormIt 1.5.1-pl by splittingred.

    Brief Description:

    Automatically validate, parse and email forms. Redirect to thank you pages. Add your own hooks as Snippets to handle forms dynamically. Validate with custom Snippets. All is possible in FormIt, the new form processing Snippet for MODx Revolution 2.0.
    New in 1.5.1

    • Fixed issue where &store was not respecting values set in post-hooks
    • Redirect hook now redirects *after* all other hooks execute

    New in 1.5.0

    • Fixed bug with redirectParams not parsing placeholders in the params
    • Added redirectParams property, which allows a JSON object of params to be passed when using redirect hook
    • Added spamCheckIp property, defaults to false, to check IP as well in spam hook
    • Fixed incorrect default param for fiarSender
    • Fixed error reporting for FormItAutoResponder
    • Added sanity checks to form attachments when dealing with missing names
    • Fixed invalid offset error in checkbox validation
    • Added recaptchaJS to allow for custom JS overriding of reCaptcha options var


    See the Official Documentation here:
    http://rtfm.modx.com/display/ADDON/FormIt
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 10169
      • 24 Posts
      Hi Shaun,

      I am running MODx 2.0.4-pl2. For some reason FormIt breaks my contact form page if I add any validators to the snippet call. It causes the page to load without a template, leaving me with a blank page with only a submit button. My call is:
      [[!FormIt? &hooks=`spam,email,redirect`  &emailTpl=`newsletteremail` &emailTo=`[email protected]` &redirectTo=`12` &validate=`name:required,email:email:required,nospam:blank` ]]


      However, the page loads correctly and works fine if &validate=`` is empty.

      Got any recommendations on how to go about troubleshooting this?

      Thanks,

      -Mike
        • 28215
        • 4,149 Posts
        Are you using a RTE such as TinyMCE?
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 10169
          • 24 Posts
          TinyMCE is installed, but I have Rich Text disabled on the page containing the form code. When I browse to the page, here is what I see in the document source:

          <!DOCTYPE HTML><html><head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <title>My Website - Newsletter Signup</title>
          <base href="http://www.mydomain.com/" />
          <meta name="robots" content="NOODP" />
          <meta name="description" content="" />
            <br />
            <div class="form-buttons">
              <input type="submit" value="Subscribe" />
            </div>
          </form>
              </div>
              <div class="footer"></div>
          </div>
          </body></html>


          Eureka! I just found the problem. There is some sort of conflict between the validation code and my meta description code in my template. Here’s that code:

          <meta name="description" content="[[*content:notags:strip:ellipsis=`150`]]" />


          That’s a bummer. I guess I’ll have to generate my page descriptions manually, though at one point I’m sure this functioned correctly... maybe back on version 2.0.3-pl?

          Should this work, or am I violating the rules by having content containing a snippet call with filters being filtered itself?

          Thanks,

          -Mike