Hi everyone,
I'm trying to ensure that participants listen to an entire audio clip before they can proceed to the next question in my Qualtrics survey. Ideally, the "Next" button should remain hidden until the audio finishes playing. I am not very familiar with coding.
I added this JavaScript in the "Add JavaScript" section of my question:
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery("#NextButton").hide(); // Hide the Next button initially
jQuery("#"+this.questionId+" audio").on("ended", function() {
jQuery("#NextButton").show(); // Show the Next button after audio ends
});
});
Has anyone successfully implemented this feature in Qualtrics? Any suggestions or fixes would be greatly appreciated!