Skip to content

Commit

Permalink
Add Hide Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tafakkur committed Oct 23, 2020
1 parent 4af7781 commit b189b2d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions JavaScript Files/Hide Next Button for a short while.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Hides the Next Button for pre-defined amount of time and then displays it.

Qualtrics.SurveyEngine.addOnload(function()
{

this.hideNextButton(); //Hide the question as soon as the page loads

});

Qualtrics.SurveyEngine.addOnReady(function()
{

var delayTime = 6000 //This is the time of delay
var that = this;
setTimeout(function(){that.showNextButton();}, delayTime); // Function to show the next button


});
17 changes: 17 additions & 0 deletions JavaScript Files/Hide Question for a short while.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Hides the Question and Choices for pre-defined amount of time and then displays it.

Qualtrics.SurveyEngine.addOnload(function()
{
this.getQuestionContainer().hide(); // Hide the question as soon as the page loads

});

Qualtrics.SurveyEngine.addOnReady(function()
{

var delayTime = 6000 //This is the time of delay
var that = this;
setTimeout(function(){that.getQuestionContainer().show()}, delayTime); // Function to show the question


});

0 comments on commit b189b2d

Please sign in to comment.