Two Part Form Submittal

janerusnak
Level 2

Re: Two Part Form Submittal

Beautiful, thank you Sanford 🤗

 

I'm going add this framework on book a demo page and on the thank you page grab the email value from the URL. Will test this next weekend and let you know how it goes.

Looking to spend wisely at your company? Check out procurify.com
Kathi_Gosche
Level 4

Re: Two Part Form Submittal

I'll give this a shot Sanford. Thanks for the suggestion and code!
Anonymous
Not applicable

Re: Two Part Form Submittal

I am now using your code Sanford.

But, how to add another form ?

and how to remove the email parameter ?

thank you so much

SanfordWhiteman
Level 10 - Community Moderator

Re: Two Part Form Submittal

Add another form by just nesting it the same way: MktoForms2 :: Progressive Form Substitution - JSFiddle*

You don't want to get rid of passing the email because that's how you make sure Marketo will tie each form's data to the same lead.

* This would be better done using a recursive function when you go over 2 forms, but I don't have time at the moment. Will edit later.  The demo now uses a recursive function so you can stack as many forms as you want (the `formidStack` array up in the config section) without adding more code. 

Anonymous
Not applicable

Re: Two Part Form Submittal

thank you so much for your reply sanford !

Anonymous
Not applicable

Re: Two Part Form Submittal

another question : my forms are now stuck on the bottom left corner - why ? and how do I move them where i want ?

thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: Two Part Form Submittal

Get a copy of the latest code (now v23) from the link.  In the config section, set `insertInsideSelector` to the element you want the form to go inside.  In the demo it's being inserted inside the <DIV> with id="exampleContainer".

Anonymous
Not applicable

Re: Two Part Form Submittal

Great - thank you !

Now I am working on putting the button on the right handside for each forms. Do you have a code for this ?

Anonymous
Not applicable

Re: Two Part Form Submittal

Found it - now I am worrking on the progress bar. Do you have some tricks ?

thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: Two Part Form Submittal

What tricks other than the PROGRESS element as in the demo?