Reply To: Hiding and showing radio button

Home Forums Support Hiding and showing radio button Reply To: Hiding and showing radio button

#607
Anthony Rivas
Guest

There is actually a semi-cheaty way to accomplish this that may work for you. You will need two questions one the same page. The first should just be a display question that shows your GIF. The second should be the question used to rate it.

In the JS for the first question, you should place:

Qualtrics.SurveyEngine.addOnload(function()
{
var questionDiv = this.getQuestionContainer();
var giflength = 1000/*length in miliseconds*/;
setTimeout(function(){questionDiv.style.display = “none”;}, giflength);
});

This will make the GIF disappear after playing, feel free not to use this if you would like it to continue playing!

In the JS for the rating question place:

Qualtrics.SurveyEngine.addOnload(function()
{
var questionDiv = this.getQuestionContainer();
var giflength = 1000/*length in miliseconds*/;
questionDiv.style.display = “none”;
setTimeout(function(){questionDiv.style.display = “block”;}, giflength);
});

This will immediately hide the question until the set time has passed, and set it to reappear after that timeframe.