We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9572
    • 56 Posts
    For some reason, the redirect hook in my FormIt call is broken. It was working previously however something broke and I'm not sure where the issue lies. When the form is submitted, it simply refreshes the form's page instead of going to a thank you page (with an id of 4) Here is what the call looks like:
    [[!FormIt?
    &hooks=`email,FormItAutoResponder,redirect`
    &emailTpl=`contactFormTpl`
    &emailFrom=`****@*****.com`
    &emailSubject=[[+selection-type]] - [[+first-name]] [[+last-name]]
    &emailFromName=`Website`
    &emailTo=`****@*****.com`
    &redirectTo=`4`
    &fiarTpl=`confirmation_email`
    &fiarSubject=`Your confirmation`
    &fiarToField=`email`
    &fiarFrom=`****@*****.com`
    &fiarFromName=`My Website`
    &fiarReplyTo=`****@*****.com`
     ]]
    


    I had added a Jquery event to open a new tab in the user's browser and then return true which used to work but now, even after removing that JS code, it still just refreshes the current page.
    • Is the email being sent? Are there any errors in the Error Log Report?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 9572
        • 56 Posts
        Quote from: sottwell at Feb 01, 2013, 07:34 AM
        Is the email being sent? Are there any errors in the Error Log Report?

        Ahh yes, there were errors related to the email. Since email is the first hook, it makes sense that FormIt would abort if the email hook failed.

        Thanks!