• Resolved Ronaldt

    (@neejoh)


    On our clients’ website we have a form that should redirect to a different “thank you”-page after it is successfully submitted.

    But instead it reloads the current page and adds a “inline success message” with the text “Form entry saved”.
    I don’t understand this, as even in my JSON export the setting seems to be correct:

    "submission-behaviour": "behaviour-redirect",
    "redirect-url": "https://client.url/contact/thank-you/"

    Why am I getting the inline message and does the redirect not work as expected?

    (the URL’s have been changed in both the JSON export and the code above for anonymity of our client)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @neejoh,

    I hope you’re doing well!

    I’ve tested the default Forminator form from my end and could not replicate this issue. I could replicate it after importing the form you’ve shared with us.

    Please edit your form, go to the Behavior tab, and choose Ajax as a reload page Method. Please see this screenshot:
    https://monosnap.com/file/MZhEKxPkvkMG5zUOOVxUC6auoFNuYm

    Under the “Submission Behaviour” re-select the Redirection Option to Redirect on the same tab and update the form. This will fix the issue.

    Let us know how it went!

    Kind regards,
    Nastia

    Thread Starter Ronaldt

    (@neejoh)

    Hi @wpmudev-support9,

    I can’t seem to figure out what is going wrong.
    Switched and saved the “Method” and “After submission” options a couple of times now, with no luck.
    I have the “redirect user to a URL” and “redirect on the same tab” selected and saved.

    When I now submit the form I see the inline success message appear, right after that a new tab (should stay in the same tab) is opened with the URL I’ve set up in “redirect user to a URL”. When I quickly close that newly opened tab, I’m in time to see the inline success message disappear (due to its timer).

    Is there a way to give you private access to the dashboard so you can have a look?

    Kind regards,
    Ronald

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @neejoh

    Could you please send me an email to [email protected] using this template:

    Subject: “Attn: Adam Cz.

    Message: link back to this thread for reference

    Keep in mind the subject line as ensures that it gets assigned to me.

    Best regards,
    Adam

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @neejoh

    I did some more testing and I’ve got an update for you.

    It seems we got a bug that’s causing that behavior recently. Our developers are already informed about it and looking into possible fixes.

    There is a workaround though that seems to work fine on my own test sites (note: it will only work if the target of the redirect is part of the same site – not an external site):

    1) use relative URL in “Redirect URL” option of the form so instead of e.g. “domain.com/other-page/” use just “/other-page/”

    2) and then also make sure that in “Behaviour” options in “rendering” section the “load form using AJAX” option is enabled; additionally, if there’s any cache enabled on site, make sure to use “Prevent page caching on form pages” option too.

    This is a workaround but it does the trick in my tests.

    Best regards,
    Adam

    Thread Starter Ronaldt

    (@neejoh)

    Thanks Adam (@wpmudev-support8), that seems to work out just fine for now.
    We’ve updated our client too and I expect that this is case closed!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page redirect not working’ is closed to new replies.