PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Trigger User Registration after first page of multipage form

  1. I am setting up a fairly lengthy multi page registration form for merchants, first is basic join, second is bank account validate, third is shop setup. So I am trying to come up with some measures in the event the merchant doesn't finish the form.

    Is it possible to trigger the registration when they go to the second page? So even if they were to leave while viewing the second page, I have already converted them as a user and can follow up on the incomplete registration.

    Posted 11 years ago on Tuesday October 9, 2012 | Permalink
  2. One approach would be to use two forms and capture their registration information on the first form, then pre-populate the second form and direct them there immediately after registering them as a user with the first form. It would not have to look any different to the visitor, it would just be a process change on your end.

    Alternatively, if you would really like to do this on going to the next page, you can use the gform_post_paging hook to run your own custom registration code:
    http://www.gravityhelp.com/documentation/page/Gform_post_paging

    I'm not sure what would happen at the end of the form if you already registered them after page one, but they did not leave the form and then actually completed it. Then, they would be registered and you would try to register them again. I would use two forms: one for the registration, early on, with a low barrier to submission by requiring minimal information, then redirect the visitor to form two, and pre-populate the information they gave you in the first form.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  3. You could even use the confirmation message text from form one to include the shortcode for form two, with the couple pieces of information already pre-populated. Like this, in your confirmation area:

    [gravityform id='2' title='false' description='false' ajax='false' field_values='email={User Email:5}&fname={Name:1}]

    Documentation for this method of dynamic population:
    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  4. Okay great thank you., that is the hook I was looking for

    I had considered the multi-form approach and may end up doing that. That seems like the 'cleanest' approach because there really doesn't need to be any changes made, it is just page redirects.

    Thanks for the help!

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  5. You're welcome. Let us know how it turns out.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink