How to fix a block under Randomizer? | XM Community
Skip to main content
Question

How to fix a block under Randomizer?

  • April 28, 2022
  • 4 replies
  • 17 views

Forum|alt.badge.img+1

Hi everyone,
I have a problem that cannot be solved by existing Qualtrics functions. I need to use custom code; however, I don't know anything about coding.
I have 3 conditions that will be presented in different random orders. Before each condition, I want to show a sentence like "This is Condition 1"; "This is Condition 2" according to the order the condition appears. In other words, I want to fix blocks containing these sentences under the Randomizer.
Does anyone deal with the same problem? Please support me on this request.
Thanks in advance.

4 replies

phbern
Level 2 ●●
Forum|alt.badge.img+8
  • Level 2 ●●
  • May 2, 2022

Hi,
Could you Group your blocks as below? In each group, the first block is the sentence you want to display and the second block is the actual condition.

svyflow.jpg


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • May 2, 2022

UyenNguyen ,
Use a combination of groups, arithmetic operations, and piping. The survey flow would look like this:
image.pngWithin the ConditionA/ConditionB blocks pipe, "This is Condition ${e://Field/condNum}"


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • May 3, 2022

If you don't mind putting all the conditions in one block. Use a combination of loop and merge and display logic.


Forum|alt.badge.img+1
  • Author
  • May 4, 2022

Thanks, phbern, TomG, ahmedA for answering. I actually tried group, embedded data, and display logic. I set a variable count is 0, but it doesn't work when running the survey.
I finally had to use Javascript to increase variable count :D My problem was solved.
Thank you guys again for your support.