Hi - I'd like to know if participants played any of the two audio files embedded in one question. Has anyone explored this before? Thank you.
Page 1 / 1
Hi there, you can use the below JavaScript to tell if a respondent played any audio files in the question. First, set an Embedded Data Element at the top of your Survey Flow and create an Embedded Data field called "played" and set the value to 'no'. Then, add the below JS to your question so that the Embedded Data field updates to 'yes' when audio is played:
jQuery('audio').on('play', function() {
Qualtrics.SurveyEngine.setEmbeddedData('played', 'yes');
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.