Reply To: Randomize DashedSentence

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

#6665
adamliter
Participant

Sorry, I have another followup question. 🙂

I’m currently trying to use newController with the AcceptabilityJudgment and Question controllers from Ibex, but nothing shows up on the screen. I also don’t see any errors with the debugger. Do you have any idea what might be going on? Here’s what I have:

PennController.Template("final_pilot_03_cnp_subj_items_all_lists.csv",
    row => PennController("trials",
        defaultText
            .settings.center()
            .print()
        ,
        newController("AcceptabilityJudgment", {s: 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", {s: 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)
);