Can I make qualtrics automatically select pictures for participant of the same questionnaire? | XM Community
Skip to main content
Solved

Can I make qualtrics automatically select pictures for participant of the same questionnaire?


Forum|alt.badge.img+1
I have more than 100 pictures related to a questionnaire. For each participant, I want them to see a different picture but the same questions. I have uploaded all pictures to the image pool but do I need to build more than 100 blocks linked to the other questions? I wonder if there is a simpler way/or existed codes? Thanks a lot

Best answer by TJUH_Kai

1. Create a Embedded Data block in the beginner of your survey flow. 2. Create an embedded data, name it random_picture_id, and set its value to a random number. 3. Use that random number to pick a pictures from your image pool. 4. Then dynamically insert the picture into the question using Question's Add JavaScript > addOnload function
View original

5 replies

Forum|alt.badge.img+2
  • Level 2 ●●
  • 99 replies
  • Answer
  • January 30, 2020
1. Create a Embedded Data block in the beginner of your survey flow. 2. Create an embedded data, name it random_picture_id, and set its value to a random number. 3. Use that random number to pick a pictures from your image pool. 4. Then dynamically insert the picture into the question using Question's Add JavaScript > addOnload function

Forum|alt.badge.img+1
  • Author
  • 24 replies
  • January 30, 2020
That is a amazing! Thanks a lot!

Forum|alt.badge.img+1
  • Author
  • 24 replies
  • January 30, 2020
> @TJUH_Kai said: > 1. Create a Embedded Data block in the beginner of your survey flow. > 2. Create an embedded data, name it random_picture_id, and set its value to a random number. > 3. Use that random number to pick a pictures from your image pool. > 4. Then dynamically insert the picture into the question using Question's Add JavaScript > addOnload function May I ask how what is the code I should write? TBH I have zero knowledge about Java, Thanksssss a lot!!

Forum|alt.badge.img+2
  • Level 2 ●●
  • 99 replies
  • January 30, 2020
You need to hire a web developer (HTML, JavaScript, CSS) to help you out.

Forum|alt.badge.img+1
  • Author
  • 24 replies
  • January 30, 2020
> @TJUH_Kai said: > You need to hire a web developer (HTML, JavaScript, CSS) to help you out. Ah I see. Thanks a lot!

Leave a Reply