Generating a condition to loop back a number of times to re-ask questions - loop back depends on the number generated from an earlier question in survey | XM Community
Skip to main content
Question

Generating a condition to loop back a number of times to re-ask questions - loop back depends on the number generated from an earlier question in survey

  • February 24, 2025
  • 6 replies
  • 30 views

Forum|alt.badge.img+1

Hi - I am trying to create a survey, part of which contains a with a loop back function - loop to an either or question - and the loop is supposed to loop back ten times OR a lower number from a prior question answer.

 

The number of loop backs is to be generated from a slider question - to be a max of ten times - and the subsequent questions are a group of this (block) or that (other block), get to end, loop back and repeat. A question determines if you go this or that.

 

Final question to be done after the last loop.

 

I can’t get ‘loop and merge’ to work, and I can’t get ‘logic’ to work.

 

Are there any templates on-line or any advice?

6 replies

jmborzick
QPN Level 5 ●●●●●
Forum|alt.badge.img+41
  • QPN Level 5 ●●●●●
  • 249 replies
  • February 25, 2025

@youngsammyg What behavior are you seeing in your survey? Can you share the QSF?


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • February 25, 2025

Hi - I don’t know what a QSF is - I may just upload a drawing, be easier than trying with words.


jmborzick
QPN Level 5 ●●●●●
Forum|alt.badge.img+41
  • QPN Level 5 ●●●●●
  • 249 replies
  • February 25, 2025

A QSF is an export of a survey. It allows you to download your survey and share it with someone else so they can use it or, in this case, look at it to troubleshoot. 

 


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5923 replies
  • February 25, 2025

@youngsammyg,

You can base a loop off the numeric answer to a text entry question. So, you could change your slider to text entry question, or you could make an answer to a text entry question the value of the slider either with JavaScript or by piping it in as the default answer.


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • February 25, 2025
TomG wrote:

@youngsammyg,

You can base a loop off the numeric answer to a text entry question. So, you could change your slider to text entry question, or you could make an answer to a text entry question the value of the slider either with JavaScript or by piping it in as the default answer.

can i do like in excel: the response, or if it’s larger than 10, use 10 instead?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5923 replies
  • February 25, 2025
youngsammyg wrote:
TomG wrote:

@youngsammyg,

You can base a loop off the numeric answer to a text entry question. So, you could change your slider to text entry question, or you could make an answer to a text entry question the value of the slider either with JavaScript or by piping it in as the default answer.

can i do like in excel: the response, or if it’s larger than 10, use 10 instead?

Yes, in the loop and merge setup, when you base it off a text entry numeric question there is an option to set the max number of loops.


Leave a Reply