Replies: 2 comments 1 reply
-
Not sure I completely understand what you are trying to achieve, but I assume that "Q1", "Q2" represents the order in which the questions appear, but the order of the questions themselves is randomized? This is what I have implemented in the example below (for the first presentation). The general I would take is to start with an array of questions without the prompt. Then you can shuffle this array to randomize the question order for each presentation. Finally, loop over that new array to update the prompt appropriately. Hope this helps!
|
Beta Was this translation helpful? Give feedback.
-
To solve the Q1Q2 problem you need to create a deep copy of the array (forgot about that). Not sure this is the best way, but I found that this is one way to solve it:
To create multiple pages (I assume you mean multiple survey-multi-choice trials?) you first have to calculate the correct number of pages, which you can do once you specify how many questions you want on each page:
Finally, you use a loop to add the correct selection of questions to each individual page:
The individual pages are now in array, so to add them to the timeline you need to unpack the array using the following syntax:
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a set of survey questions and I want to be able to enumerate them, and the numbering should be random. Besides, the survey will be presented twice during the experiment, with two separate random orderings.
So, I need a way to add question numbers to questions in a way that allows me to change question prompts. I want to add "Q1","Q2", etc. to the beginning of question prompts (in a random way).
What would be the easiest way to achieve this?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions