End Loop & Merge Option? | XM Community
Skip to main content

Hi everyone.
I've just started using Qualtrics and it's been great so far, largely in part due to the Q&A bank here.
I'm hoping someone can help with a loop&merge question I have. I'll try and explain as concisely as possible.

  1. I want users to enter details of books they have. I've got a block with a Form consisting of multiple input fields.

  2. I've got another block after that with the option to either upload a receipt or just acknowledge they are the book owner.

  3. I've then got another block asking "Do you want to add any more books?". If yes, I want it to jump back to point 1, and keep continuing the survey until the user says they have no more books.

I tried doing this via loop&merge but it doesn't seem to work. If I select Yes in point 3, it takes me back to the original record I entered, and then overwrites it.
I think I can do this via Survey flow and keep repeating the options, but I'm sure there's an easier way.
Note: Unfortunately I'm not familiar with Java.

You can't loop over multiple blocks, and a loop & merge block loops a finite number of times.
Possible solution:

  1. Put your two book questions in the same block with page break inbetween, and turn on loop & merge for the block.

  2. Add a question before your loop & merge block that asks how many books they have. Base your loop & merge on this question.


Thanks for the quick reply!
I did have option 2 previously, but if a person selects "6", and then realizes they don't need to enter 6, they can't exit the loop. Is there a way for that to happen?
Alternatively, if they finish 6, and realize they have 2 more they want to enter, I wanted an option for them to say "I have more books" and then jump to that section to restart again.
If I'm at least able to have the first part (exit the loop mid-loop), I'll be happy.


Initialize an embedded data variable 'moreBooks' to '1'. Loop a fixed, maximum number of times and use JS to set 'moreBooks' to '0' if they answer "No" to "Do you have any more books?" in the addOnPageSubmit function. Add display logic on all three l&m questions to display only if moreBooks=1.


Leave a Reply