New to Marketo, I am expecting to see a form on this page, but it's blank with no errors. | Community
Skip to main content
Albert_Albala
Level 2
Apr 1, 2019 4:30 PM UTC
Solved

New to Marketo, I am expecting to see a form on this page, but it's blank with no errors.

I have put the embed code on a page:

https://hatch130.github.io/marketo-sandbox/

The page contains only this source code:

<html>

<body>

<h1>Marketo form test</h1>

<script src="//app-sj04.marketo.com/js/forms2/js/forms2.min.js"></script> <script>MktoForms2.loadForm("//app-sj04.marketo.com", "541-JCA-443", 539);</script>

</body>

</html>

I am expecting to see a form, but I'm seeing a blank page with no error. Any guidance much appreciated, thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 1, 2019 4:41 PM UTC

Also, you don't have the <form>!

Fix that, fix the overall page, it'll work.

Though you should also read this: Make your form embeds happier and more productive by loading from your LP domain (not //app-something.marketo.com)

4 replies

Albert_Albala
Level 2
Apr 1, 2019 5:27 PM UTC

Thanks Sanford, I was missing the form tag! This works (it's not valid HTML as you mentioned, but it works anyway):

<html>

<body>

<h1>Marketo form test</h1>

<form id="mktoForm_539"></form>

<script src="//app-sj04.marketo.com/js/forms2/js/forms2.min.js"></script> <script>MktoForms2.loadForm("//app-sj04.marketo.com", "541-JCA-443", 539);</script>

</body>

</html>

This is solved!

Translate
SanfordWhiteman
Level 10
Apr 1, 2019 6:07 PM UTC

You need a standard DOCTYPE and valid <head>, though, or the page will break on some browsers. Can't rely on markup being added implicitly.

Translate
SanfordWhiteman
Level 10
Apr 1, 2019 4:33 PM UTC

That's not a valid HTML page. HTML must also have a non-empty <title> and a DOCTYPE at minimum.

Also, please always highlight code when pasting it into a Community post:

https://s3.amazonaws.com/blog-images-teknkl-com/syntax_highlighter.gif

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Apr 1, 2019 4:41 PM UTC

Also, you don't have the <form>!

Fix that, fix the overall page, it'll work.

Though you should also read this: Make your form embeds happier and more productive by loading from your LP domain (not //app-something.marketo.com)

Translate