We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26111
    • 17 Posts
    Hi,

    I am trying to use formit-2.0.3-pl with ModX-2.2.2.pl version. I can successfully use the following code:
    [[!FormIt? &hooks=`email,redirect` &emailTpl=`myEmailTpl` &emailSubject=`Message from Holtec Website` &emailTo=`[email protected]` &redirectTo=`51` &validate=`name:required, email:required, subject:required, text:required:stripTags, numbers:required, colors:required`]]


    But while trying to use FormItAutoResponder, it does not send any mail.

     [[!FormIt? &hooks=`email,redirect,FormItAutoResponder` &emailTpl=`myEmailTpl` &emailSubject=`Message from Holtec Website` &emailTo=`[email protected]` &redirectTo=`51` &validate=`name:required, email:required, subject:required, text:required:stripTags, numbers:required, colors:required`  &fiarTpl=`autoResponseTpl` &fiarToField=`email`]]
    


    It does not even throw any error.

    If I remove FormItAutoResponder hook, the system works fine and send mail to admin.

    Any help will be appreciated.

    Regards,

    Sandip
      • 3749
      • 24,544 Posts
      There's some information here that might help: http://codingpad.maryspad.com/2011/03/08/modx-revolution-for-complete-beginners-part-9-using-formit-for-contact-forms/



      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 26111
        • 17 Posts
        I have followed the instruction form this only, but could not succeed. Also tried to get help from other posts but could not find error in my code.
          • 3749
          • 24,544 Posts
          Sorry, I don't see anything wrong with your code. Assuming that you set all four of these:

          &fiarTpl=`autoResponseTpl`
          &fiarSubject=`Thank You for Contacting Us`
          &fiarToField=`contact_email`
          &fiarFromName=`Learn MODx Website`



          Make sure that the $fiarToField property has the same name as the user email field in your FormIt form.


          Maybe someone else can help.


          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 14 years, 4 months ago.]
            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
            • 54471
            • 1 Posts
            I know this is an old post but maybe this can help the next person.
            My issue was that my hidden email input didn't follow the correct template. (Which can be taken from the formit.email docx.)

            <input type="text" name="email" data-name="email" id="email" value="[[!+modx.user.id:userinfo=`email`]]" type="hidden" style="display: none;"/>


            I was missing, data-name="email". My code above is for a dynamically filled email. You can let the user input by not hiding it.
            Also make sure you have all of the required properties for FormItAutoResponder, https://docs.modx.com/extras/revo/formit/formit.hooks/formit.hooks.formitautoresponder