# Form not loading through javascript

**URL:** <https://forum.mautic.org/t/form-not-loading-through-javascript/8542>\
**Category:** Product Support\
**Created:** [May 19, 2017, 7:54pm UTC](https://forum.mautic.org/t/form-not-loading-through-javascript/8542 "2017-05-19T19:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slist](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Slist](https://forum.mautic.org/u/Slist)\
**Post date:** [May 19, 2017, 7:54pm UTC](https://forum.mautic.org/t/form-not-loading-through-javascript/8542/1 "2017-05-19T19:54:45Z")

</div>

Hi all,  
  
  
  
I am quite desperate. I really love Mautic but can’t get a form working through the javascript from the automatic generation. Here is what happens:

- Works: [www.ideeperregalo.com/mautic/form/1](http://www.ideeperregalo.com/mautic/form/1)  
- Works: [www.ideeperregalo.com/mautic/s/forms/preview/1](http://www.ideeperregalo.com/mautic/s/forms/preview/1)  
- Returns an empty page: [www.ideeperregalo.com/mautic/form/generate.js?id=1](http://www.ideeperregalo.com/mautic/form/generate.js?id=1)  
  
  
  
I am really stumped. I would really like to embed the .js as it is responsive. The form is definitely active (otherwise the other two links wouldn’t work). I don’t see any errors in the console or in the logs.  
  
  
  
I am hosting mautic in bluehost, Apache 2.2.32, PHP 5.4.24, MySQL 5.6.32, Perl 5.10.1  
  
  
  
I hope someone can help me, I feel really lost! Thanks so much in advance.  
  
Slist

---

<div class="post-metadata">

**Author:** ![Slist](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Slist](https://forum.mautic.org/u/Slist)\
**Post date:** [May 19, 2017, 7:54pm UTC](https://forum.mautic.org/t/form-not-loading-through-javascript/8542/2 "2017-05-19T19:54:45Z")

</div>

Hi all,

I am quite desperate. I really love Mautic but can’t get a form working through the javascript from the automatic generation. Here is what happens:

- Works: [www.ideeperregalo.com/mautic/form/1](http://www.ideeperregalo.com/mautic/form/1)
- Works: [www.ideeperregalo.com/mautic/s/forms/preview/1](http://www.ideeperregalo.com/mautic/s/forms/preview/1)
- Returns an empty page: [www.ideeperregalo.com/mautic/form/generate.js?id=1](http://www.ideeperregalo.com/mautic/form/generate.js?id=1)

I am really stumped. I would really like to embed the .js as it is responsive. The form is definitely active (otherwise the other two links wouldn’t work). I don’t see any errors in the console or in the logs.

I am hosting mautic in bluehost, Apache 2.2.32, PHP 5.4.24, MySQL 5.6.32, Perl 5.10.1

I hope someone can help me, I feel really lost! Thanks so much in advance.  
Slist
