How can you enforce a participant to watch a youtube video till it ends? | XM Community
Skip to main content
In our survey we want to show a short youtube clip that has to be watched till the end. Is it possible to remove the 'continue' button while the video isn't played yet or is still playing? (for example with Java script)



Also, is it possible to remove related video's, the title and other things distracting the attention from the video?



Thanks in advance
You can hide and enable next button like



`Qualtrics.SurveyEngine.addOnload(function()

{

this.hideNextButton();

this.showNextButton.delay(150);



});`
> @bansalpeeyush29 said:

> You can hide and enable next button like

>

> `Qualtrics.SurveyEngine.addOnload(function()

> {

> this.hideNextButton();

> this.showNextButton.delay(150);

>

> });`





Thanks, that's helpfull! How can I adjust it so it pops up after the video is watched? Because now it seems it won't pop up at all.
> @bansalpeeyush29 said:

> You can hide and enable next button like

>

> `Qualtrics.SurveyEngine.addOnload(function()

> {

> this.hideNextButton();

> this.showNextButton.delay(150);

>

> });`



Thanks, that's helpfull! How can I adjust it so it pops up after the video is watched? Because now it seems it won't pop up at all.
You can change seconds that is 150 in above code , change as per your video length.
> @bansalpeeyush29 said:

> You can change seconds that is 150 in above code , change as per your video length.



Thanks! Do you maybe also know if there's a way to show it with the exact ending of the video? That way it's not a problem if the loading of the youtube video takes longer with some participants.

Leave a Reply