Piping a random image response from pick, group, sort into next question | XM Community
Skip to main content

Like many here I’m a JS novice so I am having a hard time understanding previous examples and how they can be adapted to my particular design. 

Goal: Show one of the faces categorized as familiar again.

Question 1: 11 images are shown using a stack format for the Pick, group (sorting is irrelevant to me). They are asked to sort into Familiar and Unfamiliar

Question 2: Please take a few moments to identify this person (Text entry response). 

My question is, how can I code Qualtrics so that question 2 has 1) a random draw of 2) ONE of the familiar response faces that is 3) PIPED into the question. 

 

Hi @Isadora, I have found a way to solve your use case.
Long Message Alert!

STEP 1: Create pick, group, rank question type as per your requirement. Reference below.

 

STEP 2: Set the branch logic in the survey flow as shown below.
 

Create an embedded data and set it’s value as the image link (stored in Qualtrics library) of that exact same image. This is done only for the 1st answer choice, in your case you’ll have to repeat the same steps 11 times (i.e., 11 images) in total.
NOTE: Each embedded data name will be different for every branch logic. For e.g., Familiar_1, Familiar_2, Familiar_3…….Familiar_11. (you can name it as per your wish).
 

STEP 3: Create a randomizer and insert 11 branch logics as per shown below.
 

You’ll have to create a branch logics which says ‘Familiar_1 is not empty’. Then create more new 11 embedded data (F1, F2, F3…..F11. You can name it as per your wish) and it will contain value of its previous corresponding embedded data respectively. 
NOTE: In randomizer, set randomly present elements as ‘1’. and tick mark the ‘evenly present elements’ box.
 

STEP 4: Create your text entry question and pipe text the new embedded data respectively. Reference below.

 

NOTE: This will be in a separate block and will be placed after all the branch logics created in the survey flow.


I hope this works!!!


Thanks @omkarkewat! It is quite detailed but I am not able to find how to get the URL for each image into the embedded field. How did you locate it? 


Hi @Isadora whenever you click on an image in the library you will find the ‘copy link’ option. See below.
 

 


Thanks! Note to all others: I was wondering if it was getting the right link because it is not formatted with same wrapper as yours, e.g., “<img_src = =link]/>. The answer is yes. 


@Isadora that’s right, you will have to add the “<img_src = />” HTML tag manually along with the image link.


Hi,
Is it possible to add an image in the ‘Name of the Group’ of a pick up, rank and order question. I aimed to do that with HTML code with rich content editor function.

Unfortunately I cannot visualize the rich content editor when I go to change the name of a group for this kind of question.

Can you please help?


Hi @giuliopalma save the image in the survey flow and pipe text the value in the name of the group.

 


Leave a Reply