Redirecting a page after submit

2 replies · opened Feb 13, 2021

PpguyardFeb 13, 2021

Hi I have a contact page. After submission the server should serve a confirmation page; the submission is made, there is a 200 return code, but instead the page hangs and doesn't redirect.

I have narrowed it down to this line in functions.js (in my version line 2238):

$(document).ready( SEMICOLON.documentOnReady.init );

If I comment this out it works fine, but I am stuck after that. Can you help?

You can see the page on the live URL on this post.

Thanks

SSemicolon WebSTAFFFeb 13, 2021

Hello,

First, we would recommend you to Update your Website to the Latest Version to avoid any unnecessary JS Errors as we can see some JS Conflicts in the Browser Developer Console.

Secondly, you can simply add the data-redirect="https://your-website.com/thank-you.html" Attribute to the .form-widget Element to redirect the Page after Form Submission. Example:
[ch_pre][/ch_pre]

To disable AJAX on the Contact Form, simply add the .customjs Class to the .form-widget Element. Example:
[ch_pre][/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

PpguyardFeb 18, 2021

Thank you that worked

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard