Welcome to the LimeSurvey Community Forum

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

How to set a minimum amount of time spent on each question

  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184867 by zserban
Hello,


To prevent fraudulent responses it is good to set a minimum amount of time spent by respondents on some questions types (where it doesn't make sense to decide in a few seconds)

Limesurvey can collect timing information for each question.


I want to know how can I access it by using question equation validation. Like: Q....> X seconds.


Thank you
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #184869 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.
The following user(s) said Thank You: zserban
The topic has been locked.
  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184872 by zserban
Hi, Denis,

Thank you for the idea.

I guess this could work.

But the bad part would be that you would have an equal delay for all question, no matter how justified it would be in the context of the particular question.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #184875 by DenisChenu
Then : look at the code and make a workaround …

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.
  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184876 by zserban
I am not a coder, just a researcher, Denis.

Is why I am asking on the forums.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago - 4 years 10 months ago #184881 by tpartner
Add something like this to the source of a question. It will hide the submit button for a specified time.

Code:
<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function() {
 
    var delay = 10; // Delay time in seconds
 
    $('#ls-button-submit').addClass('hidden').hide();
 
    setTimeout(function() {
      $('#ls-button-submit').hide().removeClass('hidden').fadeIn(500);
    }, delay*1000);
  });
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 10 months ago by tpartner.
The following user(s) said Thank You: zserban
The topic has been locked.
  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184882 by zserban
Hi, tpartner,


Thank you, this will do it.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #184897 by DenisChenu

zserban wrote: I am not a coder,

One reason for making Open source code is : since code start to rules all human laws : human must rules the code, i mean : all human :).
Not only some big company …

;)

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 following user(s) said Thank You: zserban
The topic has been locked.
  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184900 by zserban
Coding skills are nice to have, but one person cannot have it :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose