Create a looped registration survey with a counter | Community
Skip to main content
Answered

Create a looped registration survey with a counter


I need to create a survey where someone can come and register users (name, email address) and purchase a membership for each user.  The price will depend on how many users they register.  I need to give the user the option to loop back through and add more, and I need to keep track of how many times they have done it, so I can calculate the price. 

 

So my loop would be:

  1. Enter Name
  2. Enter email address
  3. Would you like to add another? (If yes go back to 1. If no go to 4.)
  4. You have entered Y users, so the price is Y x £5 = £15

I’ve created a basic flow where I can get the survey to loop back and allow them to enter multiple users, and I created a Variable to track how many times they do that - I have a rule on step 2. that says ‘Always ADD 1 to @counter’.  However when I get to step 4 it always just shows 1 in the @counter variable.  It seems to reset the variable every time you loop back through.

Any suggestions on how I can do this?

Best answer by john.desborough

@stevedee - can you show a screenshot of your logic map and perhaps the logic rules?

one of the easier ways to do this is to set it up with a maximum number that someone can register in one pass through the entire form sequence ie “you can register up to 10 people at a time - if you need to register more you can always repeat the process for the remaining”

you set the max number then create the a question group for each of the possible 10 (in my example) registrants (pro tip: create one question group for person 1 and then duplicate the question group 9 times - it’s faster) 

then as the user enters the info into the first question group for the first registrant you have a last question in that group that is a yes no question to add another registrant. 

  • add 1 to v_pay_counter 
  • If ‘add another’ = yes go to next question group
  • if ‘add another’ = no go to payment question stream 

in the next question group, you have the same logic

in the 10th (my example max) question group you have a statement page instead of a yes no quesition that says ‘this is the max number of registrants for this pass through the process. you need to pay for the 10 people you have registered (be sure to add 1 to the counter so that you do have 10)

after the payment question, your ending page can have the button that says “register more folks?’ and loop back to the form’s welcome page.. 

just my thoughts.. 

 

des

View original

john.desborough
Forum|alt.badge.img+6

@stevedee - can you show a screenshot of your logic map and perhaps the logic rules?

one of the easier ways to do this is to set it up with a maximum number that someone can register in one pass through the entire form sequence ie “you can register up to 10 people at a time - if you need to register more you can always repeat the process for the remaining”

you set the max number then create the a question group for each of the possible 10 (in my example) registrants (pro tip: create one question group for person 1 and then duplicate the question group 9 times - it’s faster) 

then as the user enters the info into the first question group for the first registrant you have a last question in that group that is a yes no question to add another registrant. 

  • add 1 to v_pay_counter 
  • If ‘add another’ = yes go to next question group
  • if ‘add another’ = no go to payment question stream 

in the next question group, you have the same logic

in the 10th (my example max) question group you have a statement page instead of a yes no quesition that says ‘this is the max number of registrants for this pass through the process. you need to pay for the 10 people you have registered (be sure to add 1 to the counter so that you do have 10)

after the payment question, your ending page can have the button that says “register more folks?’ and loop back to the form’s welcome page.. 

just my thoughts.. 

 

des


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • November 11, 2022

Hi @stevedee Did the suggestions above work? Let us know if you need any additional help!


Reply