I have the same question.
Basically, we're following the instructions on this help page: https://community.marketo.com/MarketoArticle?id=kA050000000KyqgCAC
The form works, the validation works. The use-case is that iframes aren't *awesome* (<-- understatement) for employing responsive designs and flexible layouts.
I notice that on the native blank Marketo-page (the one we copied the form elements and script tags from), there seems to be some dynamic markup written just below the opening <head> tag.
<link type="text/css" rel="stylesheet" href="http://d2yeu2mwujl2s5.cloudfront.net/3.18-36/styles/widgets.css">
<script src="http://d2yeu2mwujl2s5.cloudfront.net/3.18-36/js/CF_insight.min.js" type="text/javascript" charset="utf-8"></script>
Looking at the template file, it seems this is written to the page <head> before the first piece of visible template markup is (and there does not seem to be a PHP call of any sort in the template that does this - at least, not based on the position).
I'd guess that this is a server injected piece of markup that has something to do with the form prefill. Is there anyway to dynamically hook into that process manually if we're successfully putting our form markup in our own CMS pages on our own domain?
Thanks!
@chrisyakimov ... I had the same struggle. I finally got the form to pre-fill by calling the SOAP getLead method:
http://developers.marketo.com/documentation/soap/getlead/
This brings in all data for a lead, so if all you want is to pre-fill the form fields, this will get you there; however, it doesn't really work with what I want to do - the progressive profiling. It seems that the progressive profiling looks for that mktoPreFillFields variable to be populated based on what is needed.
I can't seem to find a SOAP API call that will give me that information. If anyone knows what that might be, I'd appreciate it.
I have a problem when embed source from non-marketo landing page in my site.Normally, it works CORRECT, except Prefill form doesn't work. I found some article related about this issues:
https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PY6CAAW
https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PmEbAAK
But it seems doesn't help and explain why it doesn't work.
I have checked the source of the form in the first time visit (clear all the cookies), there is no variable "mktoPreFillFields" in the header.
But after submit form, and i come back this page, i check source again, now we have a variable "mktoPreFillFields" with all the infos which i have submited.
I know this is workflow, it will work automatics, but on my side, it doesn't generate the object mktoPreFillFields with the infos submitted.