We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38723
    • 165 Posts
    Your FormIt call seems to be missing a bunch of stuff. I use FormIt a lot just to send emails, my calls are usually like this:

    [[!FormIt?
       &hooks=`fiProcessArrays,email,redirect`
       &emailTpl=`contactEmail`
       &emailTo=`{EMAIL_ADDRESS}`
       &emailSubject=`Contact from [[++site_name]]`
       &emailFromName=`[[++site_name]]`
       &emailFrom=`{EMAIL_ADDRESS}`
       &redirectTo=`{ID_OF_THANK_YOU_PAGE}`
       &validate=`formName:required,
    formEmailAddress:email:required,
    formPhoneNumber:required,
    formQuery:required`
    ]]
    


    Followed by an actual form. That link you posted suggests to me you need to include the hook 'formdata2db' as well as the others listed in my call and the fiProcessArrays does your validation.

    Have you followed the rest of the instructions on that link regarding setting up additional tables in your DB, creating the formdata2db snippet, etc?


    Edit: apologies, I mentioned redirect hook, but you already had that one, it was the others that were missing!
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      [[!FormIt? &hooks=`redirect` &redirect=`1`]]

      should be
      [[!FormIt? &hooks=`redirect` &redirectTo=`1`]]
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 38723
        • 165 Posts
        Quote from: markh at Jan 11, 2013, 01:39 PM
        [[!FormIt? &hooks=`redirect` &redirect=`1`]]

        should be
        [[!FormIt? &hooks=`redirect` &redirectTo=`1`]]

        Hah, I didn't even notice that when I replied. My code did have the correct option but that one passed me by. It's been a long day!
          • 18373 ☆ A M B ☆
          • 3,141 Posts
          Stupid question, did you actually install FormIt through the package manager? If you didn't, you wouldn't be the first..
            Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

            Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
            • 3749
            • 24,544 Posts
            FormitBuilder helps you create forms for FormIt.
              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