Creating two records (leads) from one form - Referral Program | Community
Skip to main content
Kat_Narvaez
Level 2
March 1, 2017
Question

Creating two records (leads) from one form - Referral Program

  • March 1, 2017
  • 2 replies
  • 5336 views

Hello,

I've searched for info on this and I've seen others that have similar situations but not quite what we're trying to do. We're sending out a referral card in the mail to our current customers (we don't necessarily have their email addresses), so they can refer a friend, and in turn, we'll mail our customer a gift and we'll mail the friend information about our products. But we want to give our customer the option of filling out the referral card online. The online form will have:

  • Fields for our customer to fill out their name, email (so we can add them to our e-newsletter list), and mailing address.
  • Fields for their friend's info: name, mailing address, product info we should send them (checkboxes)

What we want the marketo program to do:

  • Create a record with our customer's info
  • Add customer to one of our lists
  • Create a record for customer's friend (with or without their email address, if possible)
  • Add friend's info to a separate list

Any ideas on how to accomplish this? My initial idea was just create one record (our customer) and add custom fields for friend's info, then just extract the friend's info and re-upload to a separate list. Just wondering if there's a more elegant way to do this.

Thank you!

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

2 replies

SanfordWhiteman
Level 10
March 2, 2017

Kat, you definitely don't need to extract the data and reupload it. You do this using the regular Referral Form pattern with a little enhancement.

You post the form twice. First, you post with the referrer's information (and the Munchkin cookie so the interactive lead is associated with the session). Then when the first post succeeds, switch in the referral's info and post again (leaving out the cookie this time per the usual RF guidelines​). 

The two form post "modes" can be distinguished by an additional field, so you know which list to put the person in.

Note this all happens automatically behind the scenes using JavaScript. The lead just sees the form post once as usual, they don't see anything different.

(Granted my confidence comes from having done this before.)

Kat_Narvaez
Level 2
March 6, 2017

Hi Sanford, thank you for the response! Can you send an example of the one you did?

SanfordWhiteman
Level 10
March 7, 2017

I can put up a cut-down demo of the way we do this on my blog, but it'll take a couple of days to get to it.

Devraj_Grewal
Level 10
March 2, 2017

Kat,

I asked this same question a few months back and the Community provided a few more methods here: When a customer fills out a referral form, is there a way to use the new lead's info to automatically create a lead?

I ended up opting for this method: How to Build Multi-part Forms