Welcome to the LimeSurvey Community Forum

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

timing of the presentation of questions

  • marcobani
  • marcobani's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202060 by marcobani
timing of the presentation of questions was created by marcobani
Dear all,

I need to include a section in my survey that includes 24 images; I want to show every image for 2 seconds and then participants have to answer to a multiple choice question (with 4 alternatives).

I would like to know if there's a function on LS the allow to regulate the timing of the presentation of questions,

thanks in advance,

Marco
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202189 by Joffm
Replied by Joffm on topic timing of the presentation of questions

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • marcobani
  • marcobani's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202682 by marcobani
Replied by marcobani on topic timing of the presentation of questions
thank you very much;

I've temporized the photos but when I try the survey I've seen that sometimes the timer doesn't work,
in particular for some photos I can see the timer with the countdown below the photo but sometimes simply I see the photo for less that a second and then the system go directly to the next question.

After many trial there is no regularity in the photos that jumped the timer (it seems a random bias).

I've checked the settings and the timer is correctly included in all the photos.
There's any suggestion to fix this issue?

thanks in advance
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202685 by Joffm
Replied by Joffm on topic timing of the presentation of questions
Is the survey activated?

In not activated surveys we see this issue sometimes.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • marcobani
  • marcobani's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202732 by marcobani
Replied by marcobani on topic timing of the presentation of questions
thanks;

yes, I've tried both activated and non-activated survey and the problem is still present,

if there's no way to fix this issue I would like to consider the upload of flashcard (transforming the photos in flash) or if there are other possibility I'll be glad to consider it

Marco
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202735 by Joffm
Replied by Joffm on topic timing of the presentation of questions
So, you should send the lss export of your survey.

Joffn

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • marcobani
  • marcobani's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202736 by marcobani
Replied by marcobani on topic timing of the presentation of questions
thanks,

this is the file; I hope the extraction is correct, I'm novice with LS...

File Attachment:

File Name: limesurvey...2747.lss
File Size:233 KB

File Attachment:

File Name: limesurvey...2747.lss
File Size:233 KB
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202737 by tpartner
Replied by tpartner on topic timing of the presentation of questions
You can insert your own timer with JavaScript.

Something like this in the source of the question:

Code:
<div class="timer" style="padding: 10px; border: 1px solid #CCC; margin: 10px auto; width: 200px; text-align: center;">
  Time remaining: <span class="time"></span>
</div>
<p style="text-align:center;">
  <img src="https://www.google.com/logos/doodles/2020/canada-day-2020-6753651837108439-2x.jpg" style="max-width: 400px;" />
</p>
<script type="text/javascript" charset="utf-8">  
  $(document).on('ready pjax:scriptcomplete',function(){
 
    var delay = 10; // Delay time in seconds
 
    $('#question{QID} span.time').text(delay);
 
    var submitTimer = setInterval(function() {
      delay--;
      $('#question{QID} span.time').text(delay);
 
      if(delay == 0) {
        clearInterval(submitTimer);
        $('#question{QID} .question-text img').fadeOut();
        $('#ls-button-submit').trigger('click');
      }
    }, 1000);
    });
</script>



Sample survey attached:

File Attachment:

File Name: limesurvey...6(3).lss
File Size:19 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago - 3 years 9 months ago #202738 by Joffm
Replied by Joffm on topic timing of the presentation of questions
Hi,
maybe it is related to this bug
bugs.limesurvey.org/view.php?id=16451

Fixed in Release 3.22.26+200714

Joffm

And I think there are identical question codes (DANVARisp, ...) in both groups DANVA and DANVA M

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 9 months ago by Joffm.
The topic has been locked.
  • marcobani
  • marcobani's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago #205512 by marcobani
Replied by marcobani on topic timing of the presentation of questions
Thanks,

at the end of August my university have updated the version with the last release but when I activate the survey the problem with the timer is still present.
I attache the lss, if someone have other suggestions.

Thanks also for noticing the identical question codes
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205525 by Joffm
Replied by Joffm on topic timing of the presentation of questions
Well, after some tests I think the timer starts immediately, but the picture takes some time to be displayed depending on everything concerning the infrastructure.
Therefore it seems as if there were different timings.

So you'd better use Tony's solution.
Or you may have a look at this
forums.limesurvey.org/forum/can-i-do-thi...-on-a-picture#205180

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #205563 by holch
Replied by holch on topic timing of the presentation of questions
If the image takes long to load, you might be able to try to "preload" it into the cache by linking it in another question (and of course hide it). This way the image is already in your cache and should load a lot quicker.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose