https://community.qualtrics.com/XMcommunity/discussion/comment/47037#Comment_47037Thanks for the quick reply. I have implemented changed the HTML for each question and the labeling in the JavaScript for "audiofile#" and "audiobutton#" and everything is working perfectly.It seems that I did not need to change the JS variables' names for it to work. I'll test this out and update the answer here in case I have to modify that as well.Thanks again for the help AHammell!
Hi AHammell,I have used the code you distributed here to play an audio file only once and everything worked out well on individual cases. However, if I line up more than one question containing an audio file, only the first one gets played.I have built a block composed of 8 questions. Participants should be able to play the audio file once, then they should provide an answer, then they should move on to the page where there is a new question. Ideally, the questions should be randomized.I thought the way in which the code is written would set the playcount value to 0 every time the script is called, and so I cannot figure out what is going wrong. The first file gets played without any issues. Starting from the second file, the audio is not even allowed to play, but the "Play Audio" button is still visible.In case this is helpful: I copy pasted the code that you suggested (removing the lines that allow files to be played up to N times) and the code for the HTML view for the audio files.T
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.