Loop and Merge is available for customers on the Enterprise plan in link Surveys.
- Ask follow-ups about each product, brand, or feature a respondent selected
- Ask about each item in a count, like each concert someone went to or each pet they own
- Ask the same questions about a fixed list, like three product concepts or genres
How Loop and Merge works
You turn on Loop and Merge for a single question or for a block. Everything inside it repeats once per loop, in order, before the Survey moves on. Respondents don’t see anything labeled as a loop. They only see questions whose wording matches each loop.
For example, Q2 asks “Which artists have you listened to the most over the past year?” A block with Q3 and Q4 loops from Q2. A respondent who picks Tool and Salmo answers Q3 and Q4 about Tool, then Q3 and Q4 about Salmo.
Set up a loop
- Open a draft link Survey in edit mode.
- Select the question or block you want to repeat, and open its Loop & Merge tab.
- Turn on Enable Loop & Merge.
- Choose Loop from question or Static loop.
- For Loop from question, choose the Source question. It must be a Multiple Choice Multi-Select question, or a Validated Text question set to Numeric, that comes before the loop.
- For a multi-select source, choose the Selection. Selected choices is the default.
- Optional: check Max loop and enter the most loops a respondent should see.
- Under Define fields wording to use for each loop, name each field and enter a value for each loop. For a static loop, use Add Value to add one row per loop.
- Add the fields to your question text with Piping.
If the Source question list is empty, there is no eligible question before the loop. Single-select questions can’t be a source. Add a multi-select or numeric Validated Text question earlier in the Survey.
Choose which choices repeat
When the source is a multi-select question, Selection decides which of its choices get a loop. Hover the info icon next to each option in the builder for a reminder.Limit the number of loops
Use Max loop to keep long Surveys short. A loop can have up to 10 values, and Max loop can’t be higher than the number of values.- Multi-select source: if a respondent qualifies for more loops than the max, Sprig picks which choices to loop at random.
- Number source: the respondent sees loops 1 through their answer, stopping at the max. With a max of 4, a respondent who answers 6 sees four loops.
- Static loop: the respondent sees the first values in your list, up to the max.
Add loop fields to your questions
Fields hold the wording that changes from loop to loop. Each field has a name and one value per loop, and a loop can have up to 10 fields.- Multi-select source: the first field is always Choice, the label of the choice being looped. Add more fields for other wording, such as a short name or a category.
- Number source: name a field, for example Number, and enter a value for each loop, such as 1st, 2nd, and 3rd.
- Static loop: name every field yourself and fill in one value per loop.
Respondent experience
Respondents answer the looped questions once per loop, in order, then continue with the rest of the Survey.- If there is nothing to loop over, for example no choices selected or a number source answered with 0, the loop is skipped.
- Each loop is saved as its own answer, so respondents can give a different answer for each one.
- Translations are created from the original question, so each loop is translated with its own values filled in.
Use loops with logic and blocks
- Display Logic and Skip Logic: aren’t available on a loop or the questions inside it. Loops from a question use their source to decide who sees each loop.
- Randomization: a loop always stays together. In a randomized block, it moves as one unit and its loops keep their order.
- Blocks: you can loop a whole block or a single question, but not both. A question inside a looping block can’t have its own loop.
- Moving questions: the source question must stay before the loop. You can’t move a loop above its source.
Review loop results
Data tab
Each looped question appears once, with its number, question type, and a loop label:- Loop source Q2 when it loops from a multi-select question
- Loop source Q5 - Max 4 loops when it loops from a number question with a max
- Static Loop when it loops over a static list
Responses tab
In each respondent’s response, looped questions are grouped under the same loop label. The question text shows the field name, such as Choice, and each answer row shows the loop number, that loop’s value, and the answer, for example Loop 1, Tool, Yes. Only the loops a respondent saw are listed.CSV exports, webhooks, and integrations
Each loop is its own question and column, labeled with its wording filled in.Edit a loop after launch
Once your Survey has its first response, the loop type, source, Selection, Max loop, fields, and values are read-only. You can still edit other parts of the Survey.FAQs
Can I use a single-select question as a source?
Can I use a single-select question as a source?
No. A source must be a Multiple Choice Multi-Select question or a Validated Text question set to Numeric.
Can I put a loop inside another loop?
Can I put a loop inside another loop?
No. A question inside a looping block can’t have its own loop.
How many times can a question loop?
How many times can a question loop?
Up to 10 times. A loop can have up to 10 values and 10 fields.
What happens if a respondent selects nothing?
What happens if a respondent selects nothing?
The loop is skipped, and the respondent continues with the next question after it.
Can I change a loop after launch?
Can I change a loop after launch?
Not after the first response. Loop settings become read-only so results stay consistent.