Welcome to the LimeSurvey Community Forum

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

Can I add a stimulus presentation in a question ?

  • Teaymey_208575
  • Teaymey_208575's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
4 years 3 weeks ago #195819 by Teaymey_208575
Hello everyone!

I'm creating a survey with some regular questions, but I would also like my participants to perform a task.

In this task, I would present a number (e.g. 8) for 0,5 or 1 seconds and then, what I would need (and I can't seem to make work) is for the number to disappear (meaning "go to the next page") where the participants would have to give an answer (to write the number they saw).

I tried to add a chronometer when presenting the number but it doesn't seem to work. So when I test the questionnaire the number is displayed but it stays that way and I can't make it move forward.

Thanks in advance!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 weeks ago #195823 by Joffm
Hi,
if you display your random number in a question of type "text display", enter this in the question text (source)
Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
 
    setTimeout(function () {
      $('#ls-button-submit').trigger('click');
    }, 5000);
  });
</script>

The number set the time to milliseconds (here: 5000 = 5 sec)

You should create the random number before, so you are able to compare.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Teaymey_208575
  • Teaymey_208575's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
4 years 3 weeks ago #195828 by Teaymey_208575
Replied by Teaymey_208575 on topic Can I add a stimulus presentation in a question ?
Hi,

Thank you so much! It worked great! You saved me a LOT of time.

Have a good day, sir.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose