Widget redirecting on submit
-
I added the widget but upon submitting the form, the page redirects with no success message?
-
It must be something to do with how it’s loading in the footer. I added
<?php echo do_shortcode(' [yikes-mailchimp form="1"]' ); ?>instead of the widget area and the same thing happens. The page that you’re on loads again upon submitting.
However when added to a post or a page, it submits without reloading and displays the green success message.
Did you try using our built-in widget?
Using the Easy Forms widget, yes. But either way it reloads the page, what are common reasons for this?
Can you try turning AJAX off and seeing if you can get the success message? https://yikesplugins.com/support/knowledge-base/submission-settings/
Yes I checked that. Like I said it works when adding the shortcode to a page or post, just not to the theme footer.php.
I was just double checking that troubleshooting step was taken.
Evan can take a look at it when he gets a chance, he may be able to figure out what is going on.
Thank you!
-TracyThanks for your help!
I can set up a test instance and check it out.
Give me a few and I will report back here with my findings.
Thanks,
EvanHi dbroyhill,
I setup a test instance using the TwentyThirteen theme – since that was the first theme I came across with a widgetized footer area.
I added the widget from the widget menu to the footer widget, and both ajax and non-ajax forms worked with a re-direct. The ajax form displays the success message, and then re-directs. The non-ajax forms redirect after a successful submission.
Can you share a link to your site?
Additionally, what theme is it that you are using and having issues with?
Thank you,
EvanBoth redirect? Isn’t the point of AJAX to *not* redirect?
Link is in the OP and the theme is custom…
Also, I posted that I removed the widget area and am using the shortcode directly… same behavior: redirect on submit with no message.
Hi Dbroyhill,
Let me just clarify, do you mean redirect or refresh?
You can set a form to redirect to a new page upon submission, so I think that is what Evan tested. Let us know if you mean refresh.
Thank you!
-TracyUnderstood, I have it set to AJAX with no redirect. It works correctly in a page or post but not when coded into the theme footer.php.
Hi dbroyhill,
I was under the impression you wanted a redirect to a specific page, but it was going to the homepage.
I took a look at your site, and I’m not seeing any JavaScript errors or any obvious errors.
How is it that you got the image used for the submit button?
From what I can see, our scripts and styles are not being loaded on your site. Which would explain why most of the functionality is not working on the site.
Thanks,
EvanShould I reinstall the plugin? Why wouldn’t the scripts be loading for widgets or PHP do_shortcode()?
I upgraded from an old version, because the form was broken. Probably not compatible with the new WordPress.
Still didn’t work after upgrade. I found that it was being called from what appeared to be a PHP function that is probably not supported anymore?
It ran the database update and everything appears fine on the back end and the shortcode works in pages and posts.
The topic ‘Widget redirecting on submit’ is closed to new replies.