SOLVED

Post Data from Form 2.0 to Marketo and Target Page

Go to solution
Valerie_Armstro
Level 10 - Champion Alumni
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?
Tags (1)
1 ACCEPTED SOLUTION
Justin_Cooperm2
Level 10
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/ 

View solution in original post

11 REPLIES 11
David_Klein
Level 2
The webhook call would be independent from the user experience.  The user would fill out Marketo form and would go to thank you page as dictated by the Marketo form.  You would then set up a smart campaign that executes a webhook call which submits to your proprietary form/API.  The trigger on the smart campaign would be on form submit.

Does your proprietary api/form generate a custom/personalized landing page for the user on submission?  If so, then you will likely have to use the Marketo APIs as suggested above or do the 2nd submission via JavaScript.
Anonymous
Not applicable
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!
David_Klein
Level 2
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.
Anonymous
Not applicable
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!
Anonymous
Not applicable
@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
Valerie_Armstro
Level 10 - Champion Alumni
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?
Anonymous
Not applicable
You could send this data using the REST API
Valerie_Armstro
Level 10 - Champion Alumni
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?
Justin_Cooperm2
Level 10
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 10 - Champion Alumni
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
Level 10
You can find ways to do this on the developer site:
http://developers.marketo.com/documentation/websites/forms-2-0/