Skip to main content
July 10, 2015
Question

How do I pre-fill forms?

  • July 10, 2015
  • 4 replies
  • 2883 views

When a user signs into my website, he/she has to enter their username (email) and password.

On a specific landing page, I have a form that asks for email address and check box that asks whether or not the user wants to be contacted by a sales rep.

The pre-fill option from marketo is turned on.

But it doesn't work.

All pages on my website has a tracker that detects the email address associated from the lead.

Why isn't it working? Should I use the Get and Post method?

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

4 replies

Josh_Hill13
Level 10
July 10, 2015

Is this a marketo embed form on an external site?

Does the Form itself have pre-fill turned on at the form or field level?

July 10, 2015

This is a marketo embed form.

The form itself is pre-fill turned on at the form.

July 10, 2015

Pre-Pop should work if they have been munchkin tagged.  I am not sure on the process here but is it possible that a user who has logged in has not been married to their cookie on a form fill (I would assume that your username/password form is not a Marketo form)

July 10, 2015

Anthony,

Using an Iframe is pretty straight forward, just put the Marketo form on a Marketo page and then reference the page in an iframe code  snippet on your desired page.

Click here for details on an iframe, the tricky part is setting it to the right height and width for your form ...and positioning your form so it shows in the frame.

this requires basic html expertise.

July 10, 2015

Please refer to link : Marketo Landing Page and Form Hosting Options - Elixiter, Inc.

This site explains there is a marketo iFrame. Is that not within the interface?

SanfordWhiteman
Level 10
July 10, 2015

Anthony, there really isn't any such thing as a "Marketo IFrame."  I mean, in practice, that may be what we call it, but what it really is is a Marketo Landing Page that holds only the one Marketo form, and then that LP is placed inside an IFrame in a 3rd-party site.

By only having one form take up the entirety of the LP, then when you embed the IFrame with the right cropped dimensions (as Don points out) you can make it look like the form is part of the enclosing site. 

But there isn't any such thing as "IFraming a form" -- you in fact IFrame an HTML document (LP) that happens to include only the form. Because the form thinks it's still on the Marketo site, it's able to do special things like prefill that only Marketo-hosted forms can do.

Bear in mind that -- if this isn't clear -- Marketo form prefill is taking data stored on the Marketo lead and populating form fields from it.  If someone enters their email address and password to get into your site, that doesn't have anything necessarily to do with Mkto.  The Mkto form has no way of knowing that some random variable you might store in a server session pertains to the "Email" field on a form.

Kenny_Elkington
Adobe Employee
Adobe Employee
July 10, 2015

As others have noted, marketo does not do a native prefill on non-marketo pages.  I did write this dev blog post some time ago regarding the client-side implementation of prefill using REST, http://developers.marketo.com/blog/external-page-prefill/​.  I'll look into a new post providing some server-side examples for this in the next few weeks as well.