On Submit Redirect not working

Hey,



I’m facing this issue where everything is working fine but once the data gets submitted, the page does not get redirected as per the option selected from the Form --> Details section.



Any help here would be great.



Thanks.

Hey,

I’m facing this issue where everything is working fine but once the data gets submitted, the page does not get redirected as per the option selected from the Form --> Details section.

Any help here would be great.

Thanks.

Hi, could you provide more info? For example the web page with the form would be the best. Do you see some javascript error when you open the JS console (press F12 and open the Console tab) and submit the form? Can you see some errors in the Mautic logs?

This problem usually occurs when you embed the Mautic form code into a CMS and that CMS strips out the iframe or script HTML tag. You can compare the code generated by Mautic and the code you have on your website.

I am having the same problem when inserting a manual HTML form into a Wordpress site. It works better with the automatic version, but then I can’t use Hotjar.com to analyse the form.

http://www.thomasnorden.se/kontakta-norton/ is the automatic HTML page (redirect works, but not Hotjar.com)
http://www.thomasnorden.se/kontakta-norton-2/ is the manual HTML page

@ThomasNorden when you open the javascript console as I adviced in previous post, you could see these errors:

Uncaught SyntaxError: Unexpected token <
Uncaught ReferenceError: MauticSDK is not defined

The first JS error is caused by piece of JS code handling emojis. Not Mautic related. When I open the source code of your website and look at the Mautic script tag, I can see

<script type="text/javascript"></p>

HTML code shouldn’t be inside the script tags.

Hi, thanks for the super quick reply! Which contact page have you looked at? kontakta-norton or kontakta-norton-2?

The second one