Welcome to the LimeSurvey Community Forum

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

Timer issues

  • cberghoff
  • cberghoff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188637 by cberghoff
Timer issues was created by cberghoff
Hi all,

Having trouble with timers. We are using Version 3.17.10+190821. Survey is attached for review. The theme in use is a minor modification of the Vanilla theme.

We are attempting to implement a time limit that moves on without warning and disables the next and previous buttons (though we don't display prev anyway - we have tested with this option turned off). In addition, we are trying to hide the timer using CSS from the website: "width: 150px; margin-left: auto; margin-right: auto; border: 1px solid #111; text-align: center; background-color: #EEE; margin-bottom: 5px; font-size: 8pt; display: none;".

First, we are getting inconsistent timer results. Sometimes, the timer function works just fine, sometimes it automatically advances without a delay, and sometimes the timer jumps (e.g., starts at 60 seconds and jumps to 20 seconds). How do we know this last piece? Well, the timer is rarely hidden despite using the code above.

So, can we get some help with making the timer work correctly and remain hidden at all times? We have tested in Safari, Chrome, and FireFox with the same issues on all platforms.

Thanks!
Chris
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188667 by DenisChenu
Replied by DenisChenu on topic Timer issues
Can't review or fix all but

1. Did you deactivate Ajax Mode (aka the javascript breaker)
2. You can try in custom.css .timer_header{display:none !important;}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188668 by DenisChenu
Replied by DenisChenu on topic Timer issues
About «sometimes it automatically advances without a delay» if you use same browser for testing : the timer cookies was not deleted when start a new survey.

To test : use a private browser window :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • cberghoff
  • cberghoff's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188680 by cberghoff
Replied by cberghoff on topic Timer issues
Hi Denis,

The custom.css change seemed to work. I've also now turned off Ajax.

For the advancing issue, does this only happen in test mode? We will have multiple participants taking the survey from the same computer, so this will cause a major research design flaw if the problem persists when the survey is active.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188697 by DenisChenu
Replied by DenisChenu on topic Timer issues

cberghoff wrote: For the advancing issue, does this only happen in test mode? We will have multiple participants taking the survey from the same computer, so this will cause a major research design flaw if the problem persists when the survey is active.

It happen whe using same computer …

I can only see a simple plugin to allow this … (and before any new release with new feature).

Usage of beforeSurveyPage eventt to remove the cookies when newtest is set
OR (AND ?)
Usage of afterSurveyComplete eventt to remove the cookies when survey is submitted (better in my opinion).

I can construct such plugin (next week) : www.sondages.pro/contact.html

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188702 by tpartner
Replied by tpartner on topic Timer issues

I can construct such plugin (next week)

Why, what's up this week :)

Possibly delete the cookies via JavaScript on a first screen?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188706 by DenisChenu
Replied by DenisChenu on topic Timer issues

tpartner wrote: …

Possibly delete the cookies via JavaScript on a first screen?

Oh yes , right

And i made an error : it's browser localStorage

Then,
Code:
window.localStorage.clear();

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188708 by tpartner
Replied by tpartner on topic Timer issues
Thanks Denis. I'll buy you a beer tomorrow. :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose