Can I control the number of lines in my repeated section based on user input?

Last updated Dec 14 2018

Let’s say you have a form that collects the number of children a person has as well as their names and ages.
In such a form, since you are already asking the filler for the number of kids he has, why not set up the repeated section accordingly so it will open the same number of rows?
This can easily be done - all you have to do, basically, is create a condition in which the result will determin the number of rows in the repeated section. There are 3 options you can use to control the number of rows:
- Set Items
- Add Items
- Reset Items

Following is an example of how to set the number of items:
1- Create a new blank form
2- Drag a Textbox. Change its label text to “Parent name”




3- Drag a Numeric field. Change its label text to “Number of kids”
4- Drag a Section element.
Make it wider and drag 2 elements into it:

- Textbox. 
- Numeric.  




and change its label to: Kid Name
and change its label to: Kid Age

5- Select the section and make it repeated

- Go to ‘Properties’ panel > ‘Element’ tab > ‘Settings’ option > ‘Basic’ category
- Turn on the ‘Repeated’ checkbox


6- Select the ‘Number of kids’ field on canvas

- Go to ‘Properties’ panel > ‘Element’ tab > ‘Settings’ option > ‘Conditioning’ category
- Press on ‘Set conditions’ button and configure this rule:
If Current field is not empty


- Click on the ‘Results’ button
- Find the section field in the list and change its result to “Set Items”, and choose the field where the number will be taken from. in our example: “Number of kids”.
- Press ‘Apply’


- Remove the ‘Support Opposite’ checkbox
- Save the form.


7- Now test your form:
- Publish your form as URL
- Enter the following details:
Parent Name: your name
Number of kids: 5
- Look at your section below - you will now see that you have 5 open lines.



CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.