Choose the question that contains the audio. You’ll see “JavaScript” on the left panel.
![JavaScript option](/media/enblog/qualtrics-js-panel.png)
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](/media/enblog/qualtrics-js-audio-once.png)
Final option after codes insertion
I found the answer here . It was by rondev.
Last modified on 2021-10-16