You may be building an event registration form where the respondent can register more than one person. How to create such a form that they only see as many input fields as many participants they’d like to register?
We show you how you can create these repeated fields within just minutes!
Tips! This works for other use cases too, such as inputting feedback on different teachers who teach your class, adding items and their dimensions to an inventory, applying to more than one position in a job application form, etc.
Follow these steps:
1. Start with building the initial section that needs to be answered only once
2. Then add a Question group as an umbrella question for the repeating section and add as many sub-questions as you like.
3. Duplicate the Question group so you have as many, as the maximum number of participants you’d like to allow your respondents to add (let’s use 10 in our example).
At this point, you can go two ways:
1. You can ask your respondents upfront how many people they’d like to register and repeat the fields as many times as they indicated using the Number question method.
2. Or just ask “Would you like to add one more?” after registering each participant with the Yes/No question method.
Repeat fields using the Number question method
Here is an example typeform displaying the Number question method for repeated fields. In this example we are organizing a Kid’s art fair and using a typeform to get parents register their children:
To build something similar start by creating the fields of the form, follow steps 1-3 above.
1. Add a Number question type right before your first Question group asking “How many participants would you like to register?”
2. Set Logic on the Number question, so that:
Add a Number question type right before your first Question group asking “How many participants would you like to register?”
2.1 if respondent answers 10, direct them to the first group (this way they’ll have to go through all 10 sets of questions and input data)
2.2 if respondent answers 9, direct them to the second group (respondent will have to visit 9 sets of questions)
2.3 if respondent answers 8, direct them to the third group (respondent will have to visit 8 sets of questions)
2.4 if respondent answers 1, direct them to the last group (respondent will have to visit 1 set of questions).
Repeat fields using the Yes/No question method
Here is an example typeform displaying the Yes/No question method for repeated fields. In this example we are having a garage sale and inviting our neighbours to also add items they’d like to sell:
How to build it:
Again, start by creating the fields of the form, steps 1-3 above but add a Yes/No type of question as a last question in your Question group asking “Would you like to add one more?”.
Then set Logic on each Yes/No questions, so that:
1. if they answer “Yes”, you can direct them to another set of the same questions,
2. and if they answer “No”, you can skip the next sets of Question groups and direct your respondent to move on to other questions or to the end of the form.