Looping

Looping

Feature Overview

Looping allows a set of questions (section questions) to automatically repeat based on the answers selected in a Base question. It helps survey creators collect feedback for multiple items without manually duplicating the same questions.

Idea
This feature is commonly used in surveys where respondents may interact with multiple products, brands, or services.
For example, in a product research survey, a respondent may select multiple brands they have used. Using looping, the survey can automatically repeat the same feedback questions for each selected brand. This helps researchers collect brand-specific insights in a structured way.

How Looping Works

Looping works by repeating section's questions based on the options selected in a Base question.

Base Question 

A base question is the question whose selected options control the looping behavior.
Supported Base Question Types
  • Multiple Choice Question
  • Number Question
  • Video/image choice Question ( coming soon )

Steps 

  1. Create the Base question asking respondents 
  2.  Add a new section below this question 
  3. Hover over the section and open the Logic settings from the bottom-right corner.
  4.  The system displays two configuration options: Display Logic and Looping. Select Looping option
  5. Choose Base question for looping.
  6. You can Add New field , Apply Randomization & Apply Limit on loop
  7.  After apply all the require changes then Save & Exit    

Example

Base Question:

Which products have you used?

  • Option A

  • Option B

  • Option C

If a respondent selects Option A and Option C, the survey will create two loops on entire section  & each loop will contain the same question of section on which loop is applied.

Loop 1 → Option A
Loop 2 → Option C

Personalize Questions Using Pipe Text :- You can also use pipe text to dynamically insert the selected option into the follow-up section's questions. This ensures that each repeated question clearly refers to the specific item being evaluated.

Looping Based on Multiple Choice (MCQ) 

When the Base Question Type is a Multiple Choice Question, looping can repeat a section based on the options related to that question.

Steps 

  1. Create the MCQ as Base question asking respondents. 
  2.  Add a new section below this question 
  3. Hover over the section and open the Logic settings from the bottom-right corner.
  4.  The system displays two configuration options: Display Logic and Looping. Select Looping option
  5. Choose Base question for looping.
  6. You can Add New field , Apply Randomization & Apply Limit on loop
  7.  After apply all the require changes then Save & Exit    

Base Question is Multiple Choice Question

Loop Based On Options

  1. Selected Choices by Respondent :- In this option, the loop runs only for the choices selected by the respondent in the base question.
  2. Unselected Choices by Respondent :- In this option, the loop runs for the options not selected by the respondent
  3. All Choices :- In this option, the loop runs for all options of the base question, regardless of the respondent's selection.

Field Mapping in MCQ

Field Mapping helps the system identify which option is being used in each loop.

When looping is based on a Multiple Choice base question, every selected/unselected/All option becomes one loop. Field Mapping stores that option so it can be used inside the questions in the looping section.

InfoBy default, the system creates Field 1, which contains the selected/unselected/All option.
Adding Additional Fields :- The + Add Field option allows survey creators to add more fields for each loop iteration if additional data needs to be associated with the loop.
Base Question:
Which cars do you own?
Options:
  • A
  • B
  • C
Field Mapping could be:
LoopField 1 (Car Brand)Field 2 (Car Category)
Loop 1ASUV
Loop 2BSedan

Randomize Loop Order

This option randomizes the order in which loop iterations appear in the survey. Randomizing loop order helps reduce order bias in research surveys.

Limit to Loops

This option restricts the maximum number of loop iterations, even if more options qualify for looping.
Example
If 5 options qualify for looping but the limit is set to 3, only 3 loops will be shown in the survey.

Notes
This helps prevent the survey from becoming too long when respondents select many options.

Looping Based on Number Question 

Looping can also be created using a Number type base question. In this case,  Instead of looping through selected options, the survey loops the section as many times as the numeric value provided by the respondent in Number question.

Step

  1. Add a Numeric question that will act as the Base Question for looping.
  2. Create a section containing the follow-up questions.
  3. Hover over the section and open Logic settings.
  4. Select Looping as the logic type.
  5. Choose the numeric question as the Base question.
  6. Select the Max Loop Count 
    Notes
    This helps prevent the survey from becoming too long when respondents provided large number.
  7. You can Add New field  & Apply Randomization.
  8. After apply all the require changes then Save & Exit.
 

Loop Based On Max count 

The Max Loop Count setting limits the number of loops that can be created. 
Warning
The actual number of loops will be the smaller( Respondent's input , Max count )
Example
If Max Loop Count = 4

Respondent InputLoops Created
22
44
64

Field Mapping 

In number-based looping, field mapping represents the loop index number.
If Max Loop Count = 4


Loop


Field 1
Loop 11
Loop 22
Loop 33
Loop 44

Adding Additional Fields :- The + Add Field option allows survey creators to add more fields for each loop iteration if additional data needs to be associated with the loop.
Base Question:
How many cars do you own?
Answer: 2
Field Mapping could be:
LoopField 1 (Car Brand)Field 2 (Car Category)
Loop 11SUV
Loop 22Sedan

Randomize Loop Order

This option randomizes the order in which loop iterations appear in the survey. Randomizing loop order helps reduce order bias in research surveys

Pipe Text Behaviour 

Use the Pipe Text inside the section questions to dynamically display the product or option name for each loop iteration.
To insert it:
  1. Click on the Pipe Text icon in the question editor.
  2. Select Looping from the available options.
  3. Choose the base question whose options are being used for looping.
The selected loop value will then automatically appear inside the question for each iteration.

Alert
The Looping option in Pipe Text is only visible when looping has already been applied to that section.




Notes
Note: Delete/Edit your Looping logic by clicking on the edit and delete icon visible on your section's build.



    • Related Articles

    • Logic

      Logic in Surveys What is Logic? Logic helps make surveys smarter and more efficient by showing respondents only the questions that are relevant to them. Instead of displaying every question to every respondent, logic allows the survey to adapt ...