Pipe in a Page number | XM Community
Skip to main content
Solved

Pipe in a Page number

  • October 7, 2019
  • 3 replies
  • 22 views

Hello everyone, I have a survey, in which participants see 10 pictures that they should evaluate (number between 1 - 100 in a text field). The order of the pictures is randomized. However, I want to give the pictures a heading "Picture 1", "Picture 2" etc. This does not make sense if the order is randomized. Is there an option to replace the specific number by a piped text, which gives out a number of pages, which have been already seen by the participants? Thank you very much!

Best answer by TomG

Put your pictures/questions in a loop & merge block (which you should do anyway), randomize the loop & merge, and pipe the CurrentLoopNumber.

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • October 8, 2019
Put your pictures/questions in a loop & merge block (which you should do anyway), randomize the loop & merge, and pipe the CurrentLoopNumber.

  • Author
  • 2 replies
  • October 8, 2019
Thank you very much for your advice. I tried to do so, but the picture is not shown in a correct way, even though I use <img src="${lm://Field/1}"> for example. It only shows a small square instead. I found this comment https://www.qualtrics.com/community/discussion/1795/images-from-library-in-loop-and-merge-fields which says that it is not possible to use pictures in merge & loop fields? Would be happy to get some advice. Thank you very much!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • October 8, 2019
You can use html to include images in your loop and merge. You can put the entire `<img>` tag in the loop & merge field, or include the `<img>` tag in your question html and pipe in the variable img attributes (e.g., src, etc.)