Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter dbroyhill

    (@dbroyhill)

    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.

    Thread Starter dbroyhill

    (@dbroyhill)

    However when added to a post or a page, it submits without reloading and displays the green success message.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Did you try using our built-in widget?

    Thread Starter dbroyhill

    (@dbroyhill)

    Using the Easy Forms widget, yes. But either way it reloads the page, what are common reasons for this?

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Can you try turning AJAX off and seeing if you can get the success message? https://yikesplugins.com/support/knowledge-base/submission-settings/

    Thread Starter dbroyhill

    (@dbroyhill)

    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.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    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!
    -Tracy

    Thread Starter dbroyhill

    (@dbroyhill)

    Thanks for your help!

    Plugin Author Evan Herman

    (@eherman24)

    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,
    Evan

    Plugin Author Evan Herman

    (@eherman24)

    Hi 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,
    Evan

    Thread Starter dbroyhill

    (@dbroyhill)

    Both 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.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    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!
    -Tracy

    Thread Starter dbroyhill

    (@dbroyhill)

    Understood, 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.

    Plugin Author Evan Herman

    (@eherman24)

    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,
    Evan

    Thread Starter dbroyhill

    (@dbroyhill)

    Should 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.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Widget redirecting on submit’ is closed to new replies.