The only option I have seen so far is to restrict them to play it only once or to have autoplay. Any ideas on how to achieve this?
Best answer by amk960
View originalThe only option I have seen so far is to restrict them to play it only once or to have autoplay. Any ideas on how to achieve this?
Best answer by amk960
View originalNevermind!! Solved it...
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var counter=2;
jQuery('audio').on('ended', function() {
if (counter==0){
jQuery(this).hide();
} else {counter--;}
});
});
--Added this in the add javascript option of the question.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.