# Mautic Forms - iframe works but Javascript Not

**URL:** <https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438>\
**Category:** Product Support\
**Created:** [June 12, 2022, 4:29pm UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438 "2022-06-12T16:29:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![number5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/number5/32/7749_2.png) [@number5](https://forum.mautic.org/u/number5)\
**Post date:** [June 12, 2022, 4:29pm UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438/1 "2022-06-12T16:29:23Z")

</div>

**Your software**  
My Mautic version is: 4.2.2  
My PHP version is: 7.4.29  
My Database type and version is: MariaDB 10.6.8

**Your problem**  
My problem is: Javascript Forms not submitting. After the click, it refreshes and I see the Variables in the URL-Line, but nothing arriving in the backend.

These errors are showing in the log:

Steps I have tried to fix the problem: I checked media/js/ and found no “mautic-forms.js” so I downloaded the latest version from github and pasted it in. Then I tried again, but still not working - no error in Console now though.  
I tried with the Iframe, and it works perfectly. But the styling is more difficult with the iframe.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 12, 2022, 4:55pm UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438/2 "2022-06-12T16:55:36Z")

</div>

Hi, do you have tracking on that page?  
The mtc.js should be present.

---

<div class="post-metadata">

**Author:** ![number5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/number5/32/7749_2.png) [@number5](https://forum.mautic.org/u/number5)\
**Post date:** [June 12, 2022, 8:28pm UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438/3 "2022-06-12T20:28:34Z")

</div>

Thanks for your answer. Yes mtc.js is included.

You can check yourself here: [Fiestas - Your Partysnack - Enjoy a bag of happiness - Specialists Dough Bags (Empanada Style)](https://fiestas.party/b2b_fiestas.php)

Just Request your Tasting. Maybe you see something.

Best N5

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 13, 2022, 7:04am UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438/4 "2022-06-13T07:04:40Z")

</div>

The page looks fine actually.  
MTC loads. Did my contact arrive?  
J

---

<div class="post-metadata">

**Author:** ![number5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/number5/32/7749_2.png) [@number5](https://forum.mautic.org/u/number5)\
**Post date:** [June 19, 2022, 10:19am UTC](https://forum.mautic.org/t/mautic-forms-iframe-works-but-javascript-not/24438/5 "2022-06-19T10:19:33Z")

</div>

No Nothing ☹ You should actually get a success message. But its just not loading it seems.
