I'm attempting to redirect a form if there is a duplicate email entry to a separate page. I'm actively testing on this page but the form lives elsewhere as part of a "game" on the site - http://www.readysetrecyclecontest.org/test/
I've tried using gform_duplicate_message, gform_validation, gform_pre_submission hooks but implementing a PHP redirect only seems to work for forms that aren't submitted via AJAX. When I test using:
header('Location: http://www.readysetrecyclecontest.org/duplicate-entry');
in any of the hooks I mentioned the form doesn't submit it just hangs and nothing happens. I've tested using the admin preview and it works fine, but I need the form to submit via AJAX for other reasons so I'm trying to work out a solution to this redirect issue.
Any help is greatly appreciated, thank you!