Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Time limit for multiple short text / multiple numeric input questions

More
5 years 11 months ago #206476 by mopodendo
It seems, the timer option is not available for these question types. Is there a way to specify a time limit for multiple short text questions and multiple numeric input questions?

In addition, I was wondering, if it is possible to play some sort of acoustic signal when the timer runs out.
The topic has been locked.
More
5 years 11 months ago #206728 by mopodendo
Quick update for anyone with a similar problem:
  1. Set the questionnaire to "group by group" and added a question "text" with no text but a timer.
  2. Added a Javascript snippet to play a beep after the timer runs out:
    Code:
    <script> // gain, frequency, duration let a = new AudioContext() function k(w,x,y){ console.log("Gain:"+w, "Hz:"+x, "ms:"+y) v = a.createOscillator() u = a.createGain() v.connect(u) v.frequency.value = x v.type = "square" u.connect(a.destination) u.gain.value = w * 0.01 v.start(a.currentTime) v.stop(a.currentTime + y *0.001) } setTimeout(function() { k(10,233,1000) }, 10000); </script>
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: tpartner, holch

Lime-years ahead

Online-surveys for every purse and purpose