Reply To: Randomize DashedSentence

PennController for IBEX Forums Support Randomize DashedSentence Reply To: Randomize DashedSentence

#8012
Carlos
Participant

Jeremy said:

Note that I replaced s: with q: in the Question controller, but that wouldn’t make the experiment crash anyway

However, this replacement (i.e. using q: row.Sentence) will show nothing with PennController 2.0, at least from my browser, Chrome Ver 100.0.4896.60(Official Build, 64bit, in normal mode [not in incognito mode]). Does anybody replicate the behaviour from the following link?: https://farm.pcibex.net/r/VfHNoP/


PennController.ResetPrefix(null) // Keep here

ParticipantID = GetURLParameter("id")

PennController.Template("final_pilot_03_cnp_subj_items_all_lists.csv",
    row => PennController("trials",
        defaultText
            .settings.center()
            .print()
        ,
        //q: row.Sentence will show nothing
        //s: row.Sentence will show the question and judgement options
        newController("AcceptabilityJudgment", {q: row.Sentence, as: ["1", "2", "3", "4", "5", "6", "7"], presentAsScale: true, leftComment: "very bad", rightComment: "very good"})
            .print()
            .log()
            .wait()
            .remove()
        ,
        (row.Question != "NA" ?
            newController("Question", {q: row.Question, as: ["Yes", "No"], hasCorrect: row.Answer})
                .print()
                .log()
                .wait()
                .remove()
        :
        {})
    )
    .log("ParticipantID", ParticipantID)
    .log("Group", row.Group)
    .log("UniqID", row.UniqID)
    .log("Sentence", '"' + row.Sentence + '"')
    .log("Question", '"' + row.Question + '"')
    .log("Answer", row.Answer)
);