Count down with invisible counter

From Catglobe Wiki
Revision as of 09:40, 11 January 2012 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Count down with invisible counter

In order to change question without clicking Next button.

As a questionnaire creator

I want to use automatically change question, but don't want to show the counter for the respondent

Example

  • I have a Text grid question like below.

CountDownWithInvisibleCounter.png

  • I want to change question without clicking Next button.

Solution

  • Add a Single question to Questionnaire editor like below
  • Go to menu Properties -> Question scripts -> Java script tab -> Input script

CountDownWithInvisibleCounter Code.png

Code

function jumpon()      
{
     document["query"]["dir"].value = "next";
     document["query"].submit();
}

//defines how many milliseconds the question should be visible for the respondent
window.setTimeout("jumpon();", 1500);

Source

Questionnaire Resource Id on cg site: 159730