auto-advance to next page by key presses

Birte
Birte Community Member Qubie ✭
edited April 3 in Custom Code

Hello,

I have created a Survey that has 2-answer multiple choice questions. The participants are suppossed to press either "J" for Yes and "F" for No, after which it should auto-advance to the next page. I've added JS to implement the key pressing as input, but it seems to work only party. All questions that are to be answered with "J" to be correct work perfectly, but the other way doesn't work for some reason. The key pressing is not registered as input and the auto-advance doesn't work. Can you help me?

I would appreciate any help I want to thank you in advance!

Here's the code I've got so far:

Does it have to do with the values I've chosen?

Also, I'm planning on hiding the radiobuttons in css, like i did with the nextButton (</div><style type="text/css">#NextButton {display:none;}

</style>). Is that possible? If so, how?

Thanks again!

-Birte

Answers