Post Data from Form 2.0 to Marketo and Target Page | Community
Skip to main content
Valerie_Armstro
Level 9
November 21, 2014
Solved

Post Data from Form 2.0 to Marketo and Target Page

  • November 21, 2014
  • 11 replies
  • 3565 views
We have a Marketo Form 2.0 that collects basic information about the prospect, in addition to password data, to start a trial. What we are looking to do when the prospect clicks to submit the form is to save some of the info to Marketo and then post all the data from the form, including the password, to the target page where the browser should take the user to next.

Is this possible?  If so, how would we be able to do this?
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 Justin_Cooperm2
Because you are only saving a subset of the info to Marketo, it would probably be best to have your dev team write their own form on your website with the desired fields and then reference the AssociateLead call on this page to send the field values you care about to Marketo:
http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/ 

11 replies

Justin_Cooperm2
Level 10
November 21, 2014
You can find ways to do this on the developer site:
http://developers.marketo.com/documentation/websites/forms-2-0/
Valerie_Armstro
Level 9
November 21, 2014
Hi Justin,

That was the first place I referred my Dev team to review when they had asked this question.  However, they were not certain that the information found there would accomplish what we are looking to do.  Is there something on that page in particular that you think will be able to help us meet our requirements?
Justin_Cooperm2
Justin_Cooperm2Accepted solution
Level 10
November 21, 2014
Because you are only saving a subset of the info to Marketo, it would probably be best to have your dev team write their own form on your website with the desired fields and then reference the AssociateLead call on this page to send the field values you care about to Marketo:
http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/ 
Valerie_Armstro
Level 9
November 21, 2014
Dev has built a form that we have tested, but we ideally need this form to be a Marketo form so that Marketing has control over the form (in case changes are needed), Marketing can use this form in different places for various campaigns (Marketo pages and pages in our CMS), and to prevent needing to switch out forms again like we did switching to 2.0 (there are currently 100s of landing pages this is used on in Marketo).  

If the only option was for us to do this using a Marketo form, would it be possible?
November 21, 2014
You could send this data using the REST API
Valerie_Armstro
Level 9
November 21, 2014
Hi Murtza,

Using the REST API, what calls would we need to use to post the data from the Marketo form to the target page and also bring the user to that target page upon submit?
November 21, 2014
@Val, using this approach you would pass form data to your server. Then use your server to send this data using Create/Update Lead REST API
November 24, 2014
Hi Murtza:
To be sure : the form that we will embed in our signup process will be custom built. We will submit the form and post the data directly to our target page and from there call in to Marketo using the rest API to handle lead related info.
This means that we will have to manually switch out the current Marketo singup form in 100s of landing pages with the new custom built form? I suspect this will be cumbersome to change manage. Is there a way to create and maintain it one place and then push it to all the landing pages without having it to do it 1 by 1 (sorry.. i am not very familiar with Marketo).
thanks!
Level 2
November 24, 2014
You could also reverse the order in which you process the form data.  In other words, you could use standard Marketo form and then leverage a webhook that submits to your non-Marketo form.  A downside to this approach is that you would need to save all fields to Marketo.
November 24, 2014
Hi David:
So when the user presses the submit button, we capture it into marketo, then use the webhook to post data from my form (made availble as tokens?) to my target URL? 
When I looked at webhooks, it looked like you could cal an external APi and return the response back to the user.

In our case, the page I am posting to needs to be the page that the user  navigates to next.
Is this doable? if so, please tell me how.
much appreciated.
thanks!