How to create an infinite loop over blocks until the user selects the option to end the survey | XM Community
Skip to main content
Solved

How to create an infinite loop over blocks until the user selects the option to end the survey

  • April 20, 2023
  • 3 replies
  • 983 views

Forum|alt.badge.img+2

Hi,

 

I have created a block at the end of my survey that presents users with a multiple choice question asking if they want to keep provide more information or end the survey now.

If they select the option to keep providing more information the user is presented with a block that contains further questions.

 

So far my Survey flow looks like this:

Block 1:

QID 1: Multiple choice Question : Do you want to keep providing information

  1. Yes, I want to keep providing information
  1. No, I want to end the survey now

Branch: If QID1, Yes, I want to keep providing information, is selected:

 Then display Block 2

Block 2:

Q2

Q3

Q4

 

My question is: Once the user has completed block 2 is there a way to redirect them back to block 1?

Esentially creating a loop in which they can keep providing more information until they select “No, I want to end the survey now” which then ends the survey.

 

Thank you!

Best answer by Deepak

@Melvo You can do this easily with combination of loop and merge and display logic.

Following video should be helpful: Link

 

Hope it helps!

3 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • Answer
  • April 20, 2023

@Melvo You can do this easily with combination of loop and merge and display logic.

Following video should be helpful: Link

 

Hope it helps!


Forum|alt.badge.img+2
  • Author
  • 1 reply
  • April 20, 2023

Hi Deepak,

 

Thank you so so much, it works perfectly!

 

 


Forum|alt.badge.img
  • 1 reply
  • September 18, 2024

Hi @Deepak  !

 

Is there a way to do this that will work in Survey Flow when using the survey as a reference survey? I would like to insert a survey that uses this loop/display logic tool from my library in survey flow. However, the loop and merge block does not display when I do this.

 

Thanks!