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

Add a background music to the survey

  • June 19, 2021
  • 5 replies
  • 1100 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();

5 replies

Mishraji
Level 4 ●●●●
Forum|alt.badge.img+18
  • Level 4 ●●●●
  • June 19, 2021

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


  • Author
  • June 19, 2021

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
  • June 19, 2021

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
  • June 20, 2021

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


  • Author
  • June 20, 2021

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