Reply To: Spacing "scale" radio buttons apart

PennController for IBEX Forums Support Spacing "scale" radio buttons apart Reply To: Spacing "scale" radio buttons apart

#9782
KateK
Participant

To provide more context, here is what I have right now, which I thought would work… but it is unfortunately giving me an error message of “Command ‘getScale’ unknown on Scale element ‘score’.”

newScale("score",   
    "<span style='margin: 5em;'>A</span>",
    "<span style='margin: 5em;'>B</span>",
    "<span style='margin: 5em;'>C</span>"
)
    .css({"font-size": "20px", "font-weight": "normal"})
    .radio()
    .labelsPosition("top")
    .print()
    .getScale("score").test.selected(row.AdultlikeAns) 
        .success( newText("Good job! We will now begin the experiment").print() )
        .failure( newText("Sorry, you gave the wrong answer. Please be more careful. We will now begin the experiment.").print() )
    .log()
    .log("Category", row.Catg)
    .log("Image", row.Image)
    .log("Sentence", row.Text)
    .log("AdultlikeAns", row.AdultlikeAns)
)
  • This reply was modified 1 year, 12 months ago by KateK.