Form pre-fill for Marketo forms not hosted on Marketo landing pages

Anonymous
Not applicable

I just learned that pre-fill isn't available for Marketo forms not hosted in Marketo landing pages. 

Does anyone know a custom way to make Marketo forms auto-fill when hosted on WordPress? Hoping there's a JavaScript trick or something but could be wishful thinking. 

Thanks,

David

Tags (1)
26 REPLIES 26
Anonymous
Not applicable
According to that web page about iframes, this approach only works for Marketo Forms 1.0. We're using 2.0.

Any other ideas? 
Jep_Castelein2
Level 10
Unfortunately, the iframe solution doesn't work for Forms 2.0. If you started with Marketo before Forms 2.0, you still have the option to create Forms 1.0 forms. 

It is possible to custom build a pre-fill mechanism, but it's a fair amount of work for a PHP developer. Either, you need to sync the Marketo Leads to Wordpress, or you need to make a real-time call to the Marketo REST API to retrieve the data and then pre-fill. 
Ulf_Deeg
Level 3

What would keep you from creating a Landing Page with a Form 2.0 and pull in the LP in an iframe?

Tony_Lanni
Level 2
As Stijn said, it works if you use an iframe and not the embed code.  Here is the article with basic instructions: https://community.marketo.com/MarketoResource?id=kA650000000GuJJCA0 
Dory_Viscoglio
Level 10
Hi David, I believe that this is pretty well controlled on sites that aren't Marketo sites (or anywhere the embed code is used), for security purposes. 
Stijn_Heijthuij
Level 7
Hi David,

From what I've seen and read you can do it with an iFrame.
Both your wordpress and your marketo domain will need to have the same top-level domain (*.yourcompany.com) and the security framework (http:// or https://) will need to be the same.

It's something I'm going to be trying in a couple of days when our Marketo landingpages get their SSL-certification.


Stijn