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

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.

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


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}"


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


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 😃 My problem was solved.
Thank you guys again for your support.


Leave a Reply