We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37580
    • 17 Posts
    graham.buckley Reply #1, 12 years ago
    Can anyone help please? I've set up a FormIt form within my latest Modx install 2.2.0.pl. The form works fine without the FormItAutoResponder hook added. When I reintroduce that hook it doesn't redirect as well as it doesn't send the customer email either.

    [[!FormIt?
       &submitVar=`Mysubmitted`
       &hooks=`spam,email,FormItAutoResponder,redirect`
       &emailTpl=`forms_emaildh.tpl`
       &emailTo=`[email protected]`
       &emailFrom=`[email protected]`
       &emailSubject=`Enquiry`
       &fiarTpl=`forms_emailuser.tpl`
       &fiarFrom=`[email protected]`
       &fiarSubject=`Enquiry Form || Thank You`
       &store=`1`
       &redirectTo=`231`
    &validate=`name:required,email:email:required,business:required,postcode:required,telephone:required,comments:stripTags,hearcomment:stripTags`
    ]]


    Have I missed something out at all?
      • 37580
      • 17 Posts
      graham.buckley Reply #2, 12 years ago
      Have solved this issue. The problem was that the field within the form was set to user_email and not email. It seems that FormItAutoResponder needs the email field in terms of knowing where to send to the recipients email address. The reason the redirect didn't work was down to FormItAutoResponder failing and therefore any hooks after that don't get executed. Admittedly this is well documented at http://rtfm.modx.com/display/ADDON/FormIt.Hooks yet had totally missed it :S