- Posts: 12
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Timer issues
- cberghoff
- Topic Author
- Offline
- New Member
Less
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
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
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188667
by DenisChenu
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.
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;}
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188668
by DenisChenu
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.
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
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 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188697
by DenisChenu
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.
Replied by DenisChenu on topic Timer issues
It happen whe using same computer …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.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 7 months ago #188702
by tpartner
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.
Replied by tpartner on topic Timer issues
Why, what's up this weekI can construct such plugin (next 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188706
by DenisChenu
And i made an error : it's browser localStorage
Then,
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.
Replied by DenisChenu on topic Timer issues
Oh yes , righttpartner wrote: …
Possibly delete the cookies via JavaScript on a first screen?
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 7 months ago #188708
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.