Pausing a loop at a specific index, displaying an instruction, and then proceeding with loop | XM Community
Solved

Pausing a loop at a specific index, displaying an instruction, and then proceeding with loop

  • 11 November 2021
  • 2 replies
  • 24 views

Userlevel 1

Once a specific index (which is defined in an embedded data field) is reached in a question inside a looped block, I would like to display an instruction (question type image/text), and after leaving that instruction, the loop should continue. How to accomplish this?

icon

Best answer by CamM 12 November 2021, 05:58

View original

2 replies

Userlevel 5
Badge +20

Hi novern 😊
Is the index dynamically selected and set in the embedded data field based on something else in your survey? Or is the index always the same and you're simply trying to reference the embedded data field to try define when the instruction question needs to appear?
If you are always wanting to display your instruction question at a specific loop within your looped block, then there is a no-code solution -:

  1. At the very top of your Loop & Merge block, add a Text/Graphic question (i.e. your instruction text)

  2. Configure Display Logic on the Text/Graphic question such that it will only display when the relevant loop is the current loop (Screenshot 1)

  3. Add a page break directly beneath your Text/Graphic

Screenshot 2 below gives you an idea of what the finished Loop & Merge block would look like.
The end result of this is that the instruction text will only appear during the designated iteration of your Loop & Merge. When displayed, the loop is "paused" and the respondent will need to move to the next page in order to "resume" the loop. During any other iteration, the display logic is not met and the instruction question will remain hidden.
Hope that helps!
Cheers,
Cameron
Screenshot 1
image.pngScreenshot 2
image.png

Userlevel 1

CamM Great, the no-code solution is sufficient and is workin. Thanks!

Leave a Reply