Page 1 of 1

WP Subscribers + Aweber: problem with "Stay on current page" Tank-you pages

Posted: Tue Apr 03, 2012 4:13 pm
by nico_pn
Hi,

If you're using Aweber and want to be redirected to the Current page as a thank-you page, You will encounter some troubles.

Instead of being redirected, your subscribers will discover an error page like this one :
"An Error Occurred
The form you used to subscribe is not set up properly.

Please push the "Back" button and notify the website owner."
The problem is due to some javascript code on the aweber forms.

To solve it, you have to change 2 things on WP Subscribers :

First: in the hidden field on "Setup Opt-in Code", replace :
<input type="hidden" name="redirect" value="" />
By this line from your Aweber form code :
<input type="hidden" name="redirect" value="" id="redirect_1082xxxxxx" />

Then: add this code to your Opt-in Popup (in the field "Custom jQuery"):
jQuery('input[name="redirect"]').val(document.location);

Thanks to JC who find this nice solution ;-)

Posted: Mon Apr 16, 2012 10:50 am
by Fabrice
Is is possible to post similar solution for MailChimp ?

is it possible to use Mailchimp without to be redirected to their page for confirmation ?

Posted: Wed Jun 20, 2012 3:09 pm
by nico_pn
There is no problem with mailchimp because the redirection is made by Mailchimp itself and not in the form.