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
New Participant
April 1, 2019
Solved

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

  • April 1, 2019
  • 2 replies
  • 2274 views

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.
Best answer by SanfordWhiteman

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)

2 replies

Albert_Albala
New Participant
April 1, 2019

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!

SanfordWhiteman
New Participant
April 1, 2019

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.

SanfordWhiteman
New Participant
April 1, 2019

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

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 1, 2019

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)