# On Submit Redirect not working

**URL:** https://forum.mautic.org/t/on-submit-redirect-not-working/2275
**Category:** Product Support
**Created:** [September 3, 2015, 6:56am UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275 "2015-09-03T06:56:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![habib](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@habib](https://forum.mautic.org/u/habib)
#### Post date: [September 3, 2015, 6:56am UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/1 "2015-09-03T06:56:09Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![habib](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@habib](https://forum.mautic.org/u/habib)
#### Post date: [September 3, 2015, 6:56am UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/2 "2015-09-03T06:56:09Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 3, 2015, 10:27am UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/3 "2015-09-03T10:27:31Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ThomasNorden](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@ThomasNorden](https://forum.mautic.org/u/ThomasNorden)
#### Post date: [September 9, 2015, 12:24pm UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/4 "2015-09-09T12:24:53Z")

</div>

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](http://Hotjar.com) to analyse the form.

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

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 9, 2015, 12:34pm UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/5 "2015-09-09T12:34:52Z")

</div>

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

```auto
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

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

HTML code shouldn’t be inside the script tags.

---

<div class="post-metadata">

### Author: ![ThomasNorden](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@ThomasNorden](https://forum.mautic.org/u/ThomasNorden)
#### Post date: [September 9, 2015, 12:41pm UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/6 "2015-09-09T12:41:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 9, 2015, 12:42pm UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/7 "2015-09-09T12:42:20Z")

</div>

The second one

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/on-submit-redirect-not-working/2275/8 "2020-02-02T22:58:31Z")

</div>


