Prefill Javascript code

Anonymous
Not applicable

Prefill Javascript code

We are currently using javascript to load forms on our site. Is there a javascript code snippet out there to enable the form fields we designate to fill in if the user has been cookied?

SAMPLE OF CODE we use to reveal forms on our site.

<script src="//app-***.marketo.com/js/forms2/js/forms2.min.js" type="text/javascript"></script><script type="text/javascript">

MktoForms2.loadForm("//app-***.marketo.com", "***-***-***", ****, function (form) {

MktoForms2.$("#formPlaceholder_1007").append(form.getFormElem());

});

</script>

<div id="formPlaceholder_****"> </div>

Thanks!

Tags (2)
1 REPLY 1

Re: Prefill Javascript code

If you move your question to Products​ page you might find more help. The Marketing Section is for more general Marketing Questions and a lot of the development geniuses don't always hang out on this side.

Short Answer: No to JavaScript

Available Options: API (http://developers.marketo.com/blog/get-a-visitors-cookie-id-and-then-query-associated-lead-data/ ) or iFrame workarounds