Use repeated fields in a form
You may be building a typeform, like an event registration form, job application form, or research questionnaire, where the respondent can register more than one person or set of information. How can you create such a form that they only see as many input fields as items they’d like to register?
Read on for an easy guide to creating these repeated fields within just minutes!
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 kids' art fair and using a typeform for parents to register their children:
To build something similar, start by creating the fields of the form and follow steps 1-3 above.
Then:
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:
2.1 if respondent answers 10, they are directed to the first Question group (this way they’ll have to go through all 10 sets of questions and input data)
2.2 if respondent answers 9, they are directed to the second group (respondent will have to visit 9 sets of questions)
2.3 if respondent answers 8, they are directed 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 Yes/No questions
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 neighbors 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 question, so that:
1. If they answer 'Yes', you can direct them to another set of the same questions,
2. 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.