Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

How can I hide the answer choices for multiple questions in a block?

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

Hello everyone,

I am currently building a multiple choice survey via key presses and need help with hiding the answer choices. The survey consists of 77 questions, in which the participants first see a fixation cross and then a target question that prompts them to either press "J" for Yes or "F" for No.

Right now, I am using this.hideChoices(); for each question. When I run the preview, however, the answer choices still show up for a few seconds before they delayingly dissapear and the target image appears. The 'flashing' is unfortunately quite problematic as I want the participants to focus on the fixation crosses and targets only.

Is there something wrong with my code, perhaps? Or is there a way to hide the choices for a whole block, so that the Qualtrics Engine wouldn't have to run it for every single question? And does it have to do something with the browser I am using? I have already tried it out with Safari, Chrome and Microsoft Edge, and tried putting the entire code in addOnload(), but nothing changes.

Here's the JS code for reference:

Here's the HTML for a sample question:

<center> <img src="https://psyunihamburg.qualtrics.com/CP/Graphic.php?IM=IM_8uZtBp6vAhFgy8u" style="width: 720px; height: 380px;" /> </center>

<style type="text/css">#NextButton {display:none;} </style>

I would really appreciate any help I can get! Thanks a lot in advance!

-Birte