Form Pre-Populated through Email | Community
Skip to main content
October 12, 2013
Solved

Form Pre-Populated through Email

  • October 12, 2013
  • 11 replies
  • 2667 views
Hi Guys,

Does anyone has the same scenario as me?

there is a email has a hyperlink to my sign-up page which have a form on it.

if i am a receiver for this email, it's mean to i am a lead for database, then my information like firstname, lastname,emailaddress would be prefill to that form.

i use JQuery to get the value from URL:

Example:
http://info.marketo.com/test.html?FirstName={{lead.First Name:default=edit me}}&LastName={{lead.Last Name:default=edit me}}&Company={{company.Company Name:default=edit me}}&Email={{lead.Email Address:default=edit me}}

But i happend to a problem, if customer's first name like "Ben Rose", the copy of text version email will only make the link before Rose to linked, i lose the rest one, how can i figure it out?

I have no any idea at all.


Thanks,
Rose



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

Hi Rose,

We use pURLs (personalized URLs) for this in Marketo.
This enables to pre-fill forms even though the lead doesn't have a cookie yet.
e.g. great when you import a list with suspects.

1. Go to your landing page and enable the pURL.
2. In your email update the URL and add the token for a lead's Marketo Unique Code behind the URL.
    This will render each email differently.
     http://community.marketo.com/MarketoArticle?id=kA050000000L9DACA0
3. Go to your form in design studio and pre-populate the form with tokens (e.g. {{lead.First Name}}).

Please let me know if you have any questions.

11 replies

July 3, 2014
Add this piece of code to the thank you page:

<script language="JavaScript" type="text/javascript">
function breakout_of_frame()
{
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}
</script>


And in the template of the thank you page, add the following to the body tag to make sure it triggers:

<body onload="breakout_of_frame()">

As soon as the thank you page opens, it will break out of the iframe. But as you put it in to the template, it will apply to all pages using that temple. Alternatively you can also drag an HTML page element on the landing page with the form and add this code to it.:

<script language="JavaScript" type="text/javascript">
document.getElementById("myFormID").addEventListener("submit",function(){
    return breakout_of_frame();
},false);

</script>

This will let the form break out of the iframe when it's submitted. Not sure if it will work though. But I hope my examples are clear that you can use Javascript to break out of the iframe.
July 3, 2014
Thanks! I got that to work. However, now I am facing another issue: upon submission of the form, how do I escape the iFrame? We have a Thank you page but that now shows up iFramed :-) Is that possible?
July 3, 2014
https://community.marketo.com/MarketoResource?id=kA650000000GuJJCA0
July 3, 2014
Hoi Diederik,

I don't understand. iFrame what? 

TIA

Patrick
July 3, 2014
Hi Patrick, I noticed with Forms2.0 it doesn't pre-populate when the form is used on a non-marketo landing page (e.g. with the embed code). The only way would be an iFrame if you want it to be pre-populated.
July 2, 2014

I am using the new Form Editor that is under Marketing Activities in Marketo (it seem to be more user friendly). However, when I create a form, and I set the default value to be  {{lead.First Name}}, I see exactly that:



The form is on our own website. It has the Marketo tracking code, but probably is not considered a Marketo landing page.

Any insight is appreciated.

Patrick

October 15, 2013
If you click on a field on the left, a dialog opens on the right.

October 15, 2013
Hi Diederik,

Could you please tell me in step3, where can i change the pre-polulated token in form?

Thanks,
Rose
October 15, 2013
Hi Diederik,

You do me a big favor, thanks a lot.

thanks,
Rose
Accepted solution
October 14, 2013

Hi Rose,

We use pURLs (personalized URLs) for this in Marketo.
This enables to pre-fill forms even though the lead doesn't have a cookie yet.
e.g. great when you import a list with suspects.

1. Go to your landing page and enable the pURL.
2. In your email update the URL and add the token for a lead's Marketo Unique Code behind the URL.
    This will render each email differently.
     http://community.marketo.com/MarketoArticle?id=kA050000000L9DACA0
3. Go to your form in design studio and pre-populate the form with tokens (e.g. {{lead.First Name}}).

Please let me know if you have any questions.