Hi all, I have been working on a task involving audio stimuli and a visual analog scale (VAS). After the participant clicks and plays the audio, the participant is supposed to make a judgment of the audio stimulus using a VAS. However, I only want the participants to hear the audio once. Qualtrics.SurveyEngine.addOnload(function(){ /*Place your JavaScript here to run when the page loads*/});Qualtrics.SurveyEngine.addOnReady(function(){ /*jQuery('audio').on('ended', function() { jQuery(this).css("pointer-events","none");*/});Qualtrics.SurveyEngine.addOnUnload(function(){ /*Place your JavaScript here to run when the page is unloaded*/});Above is the code listed in the JS section, per the recommendation of this post. Still doesn't work. https://www.qualtrics.com/community/discussion/2509/how-to-restrict-the-number-of-times-participants-can-play-audioAny tips on how to do this? Thank you!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.