I'm trying to let a set of videos play during loop & merge and automatically continue to the next loop after a set amount of time. Unfortunately, YouTube blocks autoplay on smartphones so I had to use this script: https://stackoverflow.com/questions/15090782/youtube-autoplay-not-working-on-mobile-devices-with-embedded-html5-player.
I inserted this into my question text and changed the video ID to the piped text for the loop & merge field. The script plays well in the first loop but not in the subsequent ones. Could someone please tell me how I can execute that script in every loop? I'm new to both JavaScript and Qualtrics, so help would be very appreciated.
This is my JavaScript:
Qualtrics.SurveyEngine.addOnload(function()
{
setTimeout(function(){jQuery('#NextButton').click()}, "${lm://Field/2}");
});
Here's my question text:
JavaScript during Loop & Merge
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.