Random Text Items from a Specified List | XM Community
Skip to main content
Solved

Random Text Items from a Specified List


Forum|alt.badge.img+2

Hi everyone,

 

I’m working on my first project in Qualtrics and need some help programming a setup where:

 

  1. I have 24 unique jokes that need to be displayed randomly. Im not sure how these need to be attached or stored in the project.
  2. The jokes are to be told by 8 different cartoon avatars (graphics) and each will be rated via a sliding scale (1-100)
  3. Each avatar will “tell” a set of 3 jokes, displayed in a two cell table : the avatar graphic in the left cell and the joke text in the right cell.
  4. All 24 jokes must be used, at random and none can repeat.

 

I’m not sure if I should use a randomizer or a piping function to achieve this setup, or if there’s a better way to handle it. I’d love advice on the best approach and any specific steps or code I might need to implement this. Please remember I am very new at this so layman’s terms would be much appreciated. :)

 

Thanks in advance!

 

Evan

Best answer by gPandey_715

That sounds like a fun project! Here’s how you can set it up in Qualtrics in a simple way:

1. Store Your Jokes & Avatars

  • You’ll need two embedded data fields: one for jokes and one for avatar images.

2. Use a Randomizer to Assign Jokes

  • In your Survey Flow, add a Randomizer.
  • Inside the Randomizer, create 24 Embedded Data fields, each holding one joke (e.g., Joke1, Joke2, etc.).
  • Set the Randomizer to Present All so each joke is used exactly once.

3. Assign Jokes to Avatars

  • Add another Randomizer with 8 Embedded Data fields (one for each avatar).
  • Store the avatar image URLs or names in Embedded Data fields (e.g., Avatar1, Avatar2, etc.).
  • Now, in your survey questions, use Piped Text to pull in jokes and avatars dynamically.

4. Create the Question Format

  • Use a Matrix Table (2 columns, 3 rows):
    • Left column: Display the avatar image.
    • Right column: Display the joke text.
  • Each matrix should be followed by a Sliding Scale question (1-100) for rating.

5. Ensure Jokes Don’t Repeat

  • By placing jokes inside a Randomizer that presents all items exactly once, you ensure all jokes get used without duplication.

Let me know how it goes! 😊

View original

3 replies

Aggarwal
Level 4 ●●●●
Forum|alt.badge.img+15
  • Level 4 ●●●●
  • 134 replies
  • January 28, 2025

Forum|alt.badge.img+2

Thanks for your help. I decided not randomise the jokes due to this being a little beyond my capabilities and at the mention of requiring javascript. 


gPandey_715
Level 2 ●●
Forum|alt.badge.img+5
  • Level 2 ●●
  • 27 replies
  • Answer
  • January 30, 2025

That sounds like a fun project! Here’s how you can set it up in Qualtrics in a simple way:

1. Store Your Jokes & Avatars

  • You’ll need two embedded data fields: one for jokes and one for avatar images.

2. Use a Randomizer to Assign Jokes

  • In your Survey Flow, add a Randomizer.
  • Inside the Randomizer, create 24 Embedded Data fields, each holding one joke (e.g., Joke1, Joke2, etc.).
  • Set the Randomizer to Present All so each joke is used exactly once.

3. Assign Jokes to Avatars

  • Add another Randomizer with 8 Embedded Data fields (one for each avatar).
  • Store the avatar image URLs or names in Embedded Data fields (e.g., Avatar1, Avatar2, etc.).
  • Now, in your survey questions, use Piped Text to pull in jokes and avatars dynamically.

4. Create the Question Format

  • Use a Matrix Table (2 columns, 3 rows):
    • Left column: Display the avatar image.
    • Right column: Display the joke text.
  • Each matrix should be followed by a Sliding Scale question (1-100) for rating.

5. Ensure Jokes Don’t Repeat

  • By placing jokes inside a Randomizer that presents all items exactly once, you ensure all jokes get used without duplication.

Let me know how it goes! 😊


Leave a Reply