Qualtrics: How to Make Sure An Audio Can Only Be Played Once

Hongtao Hao / 2021-10-13


Choose the question that contains the audio. You’ll see “JavaScript” on the left panel.

JavaScript option

JavaScript option

Click it and add the following codes

jQuery('audio').on('ended', function() {
jQuery(this).css("pointer-events","none");
});

Within

Qualtrics.SurveyEngine.addOnReady(function()
{
	/*Place your JavaScript here to run when the page is fully displayed*/

});

Like this:

Final option after codes insertion

Final option after codes insertion

I found the answer here . It was by rondev.

Last modified on 2021-10-16