PennController for IBEX › Forums › Support › Adding an F/J key instead of a YES/NO scale › Reply To: Adding an F/J key instead of a YES/NO scale
June 9, 2021 at 12:59 pm
#7050
Keymaster
Hi Ugurcan,
Using a Key element drastically simplifies the logic: you just print a Text element that says “F: Yes, J: No” and create and wait for a Key element:
newImage("Q1Image", "https:" + row.ImageURL1).size(703,398)
,
newText("Q1", "<p style=font-size:22px;>Did you see this image in the video?</p>")
,
newText("Q1instr","<strong>F: Yes</strong> <strong>J: No</strong>")
,
getCanvas("testcanv")
.remove(getVideo("eventTest"))
.add("center at 50%","middle at 50%", getImage("Q1Image"))
.add("center at 50%",475, getText("Q1"))
.add("center at 50%",525, getText("Q1instr"))
,
newKey("Q1resp", "FJ").wait()
,
newVar("TQ1")
.set(getKey("Q1resp"))
Jeremy