Easiest way to Embed Marketo forms onto our Webpage | Community
Skip to main content
January 30, 2013
Question

Easiest way to Embed Marketo forms onto our Webpage

  • January 30, 2013
  • 14 replies
  • 2706 views
I thought it would be a simple as viewing the source code on the form page (campaigns.doubledutch.me/RequestaDemo.html), then copying it, customizing the css, and pasting the code into our webpage to replace our form and get the marketo form working. For some reason we are not able to view the source code. Any thoughts?
 
Then, I found this super complex-looking procedure which my web designer understands: https://community.marketo.com/MarketoArticle?id=kA050000000Kyqg&src=comm 

Is this what we have to do to get these forms up?

Thanks!
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

14 replies

March 6, 2013
Adam - Very cool. Just the validation I needed. But once you have your form embedded do changes you make to a form in Marketo automatically update the form on the web page? Or do you have to re-post the code?

Greg
March 6, 2013
Unfortunately by removing the text from the marketo landing page requires you to make updates to your website in the event that your form changes. So yes, re-post the code if changes are made to the form.
March 6, 2013
OK. Thanks Adam.
June 20, 2013
Adam, we have been using iframes to display our Marketo forms, but recently needed to embed one on an external page.  I followed the instructions on the Put a Marketo Form on a Non-Marketo Page help article, but the resulting formatting was horrid including no red asterisks after the labels indicating required fields.  Also, the help article indicates that you need to use an iframe for progressive profiling and pre-fill. 

So I found this article, inspected your example landing page (thanks for leaving it up there!) and discovered a few style sections that you had included that were not shown in the help article as well as a couple of scripts defining the profiling.  After adding the missing code, the format was perfect, and the profiling and pre-fill worked as well! 

Unfortunately the form's hidden fields that would populate with cookie values when the form is in Marketo are not being populated when using the embedded form :0(  We have the javascript on the page that allows the cookie value to be read, but we need to use a token in the "value=" portion below - does anyone know what that token should be?

<li class='mktField' style="display: none;"><label>utm_medium:</label><span class='mktInput'><input class='mktFormHidden' name="utm_medium" id="utm_medium" type='hidden' value="none" /><span class='mktFormMsg'></span></span></li>