martaponciano

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Questionnaire with questions on the same page #10472
    martaponciano
    Participant

    Hi Jeremy,
    Thanks a lot! That worked wonderfully.

    Marta

    in reply to: Questionnaire with questions on the same page #10470
    martaponciano
    Participant

    Hi 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.
    Marta

    in reply to: Questionnaire with questions on the same page #10467
    martaponciano
    Participant

    Hi 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,
    Marta

    in reply to: Questionnaire with questions on the same page #10462
    martaponciano
    Participant

    Hi 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

Viewing 4 posts - 1 through 4 (of 4 total)