Forum Replies Created
-
AuthorPosts
-
martaponciano
ParticipantHi Jeremy,
Thanks a lot! That worked wonderfully.Marta
martaponciano
ParticipantHi Jeremy,
I have a follow-up question. May I ask if I can get the actual questions in the array printed in the results file after Question-0; Question-1? It would be very much appreciated.
Thanks a lot.
Martamartaponciano
ParticipantHi Jeremy,
Thank you for your quick reply. Exactly, the “question” from my code is the one defined in that message. What I meant was option 3. Your code works great!
Thank you again,
Martamartaponciano
ParticipantHi Jeremy,
I’ve designed an experiment which includes a questionnaire. The questionnaire must display all the questions on the same page. I am using scale as a measurement for responses and I have created a file named wbsiQuestions.js in my Controllers folder in order to set a variable there to contain the array of questions. Basically I am using the code you wrote down from messages above and it works perfectly well. Thank you very much for that! However, I’d love to know how to randomize the questions (that is the scale’s labels)? May I ask how to do that? Do I need a new Canvas element (containing my Scale+Test elements) and a Selector element? Also, I’d love to know how to keep track of the presentation order of all the questions after we randomize the presentation order. It would be great to have them in the results file.
So far I have used this code:
var test; newTrial("WBSI", ...wbsiQuestions.map( (v,i) => { if (i==0) test = getScale("Rating-"+i).test.selected(); else test = test.and( getScale("Rating-"+i).test.selected() ); return question(i,v); }) , newButton("next", "Next") .print() .wait( test ) )
Thanks a lot.
Best wishes,Marta
-
AuthorPosts