Piping a random image response from pick, group, sort into next question | XM Community
Solved

Piping a random image response from pick, group, sort into next question

  • 18 December 2023
  • 7 replies
  • 96 views

Badge +2

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. 

 

icon

Best answer by omkarkewat 19 December 2023, 15:35

View original

7 replies

Userlevel 4
Badge +12

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!!!

Badge +2

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? 

Userlevel 4
Badge +12

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

 

Badge +2

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. 

Userlevel 4
Badge +12

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

Badge +3

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?

Userlevel 4
Badge +12

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

 

Leave a Reply