Add a background music to the survey | Experience Community
Skip to main content
Solved

Add a background music to the survey

  • Jun 19, 2021 5:52 PM UTC
  • 5 replies
  • 1257 views

Hi Guys,

I am trying to add music to my Stroop test on qualtrics. It should continue to play while the questions are passing.
I could add the music to it but unfortunately, it restarts for every question.
Does anyone have an idea about it?
Kind regards

Best answer by Mishraji

Teza - You can add the following code to the first question and it should work fine.

var audio3 = new Audio('paste audio file url here');
audio3.play();

View original

5 replies

Mishraji
Level 4 ●●●●
Forum|alt.badge.img+18
  • Level 4 ●●●●
  • Jun 19, 2021 7:52 PM UTC

Teza - How about adding it to the header/footer?


  • Author
  • Jun 19, 2021 8:34 PM UTC

Mishraji Thanks for the reply
I tried it but have same problem for the entire survey now.
any other ideas?


Mishraji
Level 4 ●●●●
Forum|alt.badge.img+18
  • Level 4 ●●●●
  • Answer
  • Jun 19, 2021 8:57 PM UTC

Teza - You can add the following code to the first question and it should work fine.

var audio3 = new Audio('paste audio file url here');
audio3.play();


  • Author
  • Jun 20, 2021 9:58 AM UTC

Mishraji to what part should I add it?
javascript or HTML? if javascript which part exactly?
thanks in advance


  • Author
  • Jun 20, 2021 10:50 AM UTC

Mishraji Thanks for the solution you offered
I was wondering if you know how to play the music for a specific block only