[How To] Add A Multi-Step Form 2.0



Show first post

224 replies

Userlevel 7

Hi @Andy2,

You may have some luck wrapping this code in a conditional statement based on window size:

<script>
  if ( lp.jQuery(window).width() <= 600 ) {
    // Your mobile code goes here
  }else{
    // Your desktop code goes here
  }
</script> 

Hope this helps point you in the right direction!

Badge

Thanks @Noah! I’m testing out now, seems promising. At least one issue I’m encountering with this solution is that validation no longer seems to work.

Badge

@Noah I’ve tested this out here: http://unbouncepages.com/multistep-mobile-only/

On desktop, the validation works, but error messages aren’t appearing. On mobile, validation and error messages seem to be working fine.

Any thoughts on how to get error messages to appear on desktop? Thanks!

Userlevel 7

Hey Andy, you’ll likely have to write a media query that only applies the following CSS to a max-width of 600px:


Here’s a guide on media queries if you need any help: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries

I hope that does the trick!

Hi All,

I love, love, love this form. This is exactly what we have been after, the multiple page approach has been painful on mobile due to having to load pages but i’m sure this will fix that.

Apologies if this has already been mentioned but i’m struggling to figure out how to put multiple fields in each stage. i.e. First Name and Last Name in the same stage rather than one after the other. Any guidance?

Also, is it possible to make the first button stretch the length of the form?

Thanks

@Noah is there any possible way to combine your awesome script with your other script, the Form Glow Script? They are both awesome, and I’d love to use them simultaneously.

On another note, I saw @Samir talk about drop-down menu’s. I haven’t been able to fix this for myself yet, the drop-downs won’t allow me to continue filling in the multi-step form. Is there a solution for this yet?

Kind regards,

Pepijn

Isn’t the first button all by your own design? You can make it as long as you’d like, or am I seeing this wrong?

Hi community-members,
I am running into the following problem: I want to integrate the multistep-form into a convertable. This works perfectly fine for desktop. However, for mobile I got a very cluttered view on Chrome browser and no view at all on Safari.

Has anybody an idea to solve this?

The biggest part of our traffic is mobile.

Best regards,
Nicol from OneFit

Userlevel 7
Badge +4

Hey Nicole!

Could you share a link/screenshot?

Cheers 🙂

Hi Noah,

I’m having an issue with the pages that have this script on them opening straight to the form rather than the top of the page. I can work around it by adding the ID of the top most section to the URL, but I was wondering if you knew why this was happening? I can send you a link to one of the pages this happens on if you want.

Thanks,

Alice

Userlevel 7

Hey @aclayton this should address the issue you’re having:

Badge +1

@Noah I’m trying to get this script to perform with a couple of drop-down fields in the form but it doesn’t seem to work… any ideas?

http://unbouncepages.com/lander-a-candis/

Badge +1

Thanks for the speedy reply @Noah!

I’ve just tried doing that and even tried removing the script that fills the fields with titles. Still no luck.

Hoping to get this page ready for a client on Wednesday

I guess the form data is not being saved in the lead database after each step of the form, but only at the end, or is it?

Userlevel 7
Badge +3

Hi @Aleks,

You are correct. The form or in this case the last step needs to be submitted in order for the data to be actually recorded.

Best,
Hristian

Hey @Hristian !

Do you think it is technically achievable at all to save the leads after each form step in the same database? Or in other words: How do we recover valuable lead data if a visitor abandons the form in between the steps?

How about this solution? (not nice but probably doable)

Each step is represented by a different landing page:

example.com/step-1/
example.com/step-2/
example.com/step-3/
example.com/step-4/

Each form step is not just a ‘next’ button but in fact a ‘submit’ button (with ‘next’ as text).
But at the same time of the submit we send over the form data with URL parameters like so:

example.com/step-1/
example.com/step-2/?name=Aleks
example.com/step-3/?name=Aleks&email=aleks@example.com
example.com/step-4/?name=Aleks&email=aleks@example.com&phone=1234567

Yes, we’ll have four databases with mostly duplicate data. But, in this example we at least would keep the email address if a visitors abandons the form in step 4.

What do you say? Possible, yes? Is there a more efficient way to do it with Unbounce you could think of?

Regards
Aleks

Userlevel 7
Badge +3

Hi @Aleks,

What you are proposing was actually how you would do a multi-step form on Unbounce back in the day.

It is a pain to set up but it works.

However, you have to ask yourself… If my visitor didn’t complete the form do they really want to be contacted by me.

I would personally not like someone contacting me if I didn’t give explicit consent.

Couple of other options you can try to get your visitors to complete the form:

  • Retargeting - Pixel them and set up some retargeting ads.

  • Make use of the Convertables and offer them something on exit intent

Last but not least maybe the “offer” of the page is something else that can be worked on and improved. Give them a compelling reason to actually complete the whole form.

Best,
Hristian

Hi @Hristian

How about calling the ‘next’ button, ‘submit and continue’ instead (or something less clunky)?
Or have a disclaimer, telling that all partial data is being submitted and used for marketing purposes.

That way you get your consent for every step of the form.

Also think about this: If a visitor enters the name and email but doesn’t want to give away his phone number that’s fine. But if we lose the entire submission because the visitor simply doesn’t want to give the phone number and doesn’t skip but instead abandons the form, we lose everything.

So my point is: I think every field entered and submitted (‘next’ button clicked) is a form of consent anyway and we are allowed to use the data of a partial form submission.

How about leaving that to an A/B-Test?

Yes, you might make certain people a bit more unhappy if you use their data of a partially submitted form. But if it turns out financially more beneficial to your client to use partial submissions then this is the way to go, right? And I’m pretty sure using partial submissions are going to increase the conversion rate down the entire funnel.

Regards
Aleks

I know exactly what you mean. But adding a single button click step really tanked conversions? The typeform form is so smooth on mobile using the pop up version, better than anything else I tested. Leadformly drove me insane during the trial. I so wanted it to work well…

Im sorry I dont understand this step 😦
Update the script with the ID of your ‘Previous’ and ‘Next’ button elements. Tip: Make sure you exclude the ‘#’ in the ID.
Can you give me an example
🤔

Hello @Noah, Thanks for this excellent script! We’re trying to implement this with multiple fields in each step - 2 fields in step 1 (a dropdown and checkboxes) and 4 fields in step 2 (all text boxes). Is there a way to do this?

Thanks!

Andy

Userlevel 7
Badge +4

Curious to hear the answer to this. We’d love to test something like that too!

Hi @Noah

where is the function which is named ‘validate’?

It is called, but never defined, as far as I can see

    var errorList = lp.jQuery('.lp-pom-form form').validate().errorList;

Also, why is errorlist added at the end?? 😕

@Emeric_Lfrt

  • right click on a button, find the id number
  • in the script, change the number of the button to your number

Reply