Submit a ticket My Tickets
Welcome
Login

Looping


In many questionnaires, there may be a set of questions that are going to be asked repeatedly. These questions are known as “loops”. Loops are based on a count of how many times the same set of questions will be asked.


Step 1 - To create a list that can be used in a loop

 Instructions for creating a list:

  1. At the bottom of the left-hand side of the “Build” page, there is an option that says “Lists”

A screenshot of a computer

Description automatically generated

 

  1. By clicking on the “+” next to “Lists” you can add your own list to insert into your answer choice options.

A screen shot of a computer

Description automatically generated

  1. Click on the list you’ve just created (in this example “Brand_List”) and it will open the screen where you can add your answer choices:

A white paper with blue lines

Description automatically generated

For more detail on Lists, please see this article

 

Step 2 – Create a section and add questions that need to be asked repeatedly. See this section for more detail on creating questions and question types in Survey Builder.

 

Step 3 – Click on “Section Options” and select the Loop section from the drop-down list.

              A screenshot of a computer

Description automatically generatedA screenshot of a computer

Description automatically generated 

 

 

 

 

Step 4 – Add _$cnt; in the question label

A close-up of a computer screen

Description automatically generated

Step 5 – Loop question is ready, and it will repeat for all the answers listed in the list. 

 

Looping based on the previous answer

 

  • Follow all the sets mentioned above.
  • Pass \PreviousQNo.a=$cnt; as filter condition on all the questions that need to iterate. 
  • If we have to pipe text then use {{loop}}
  • To auto fill the loop iteration in a question, use $cnt; in answer control 
  • If you have to use the list in any question, click on the below icon and add it.

A screenshot of a computer

Description automatically generated

 

 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.