Welcome to the LimeSurvey Community Forum

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

Time-Mapping LimeSurvey answers

  • Jean_luetz
  • Jean_luetz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #113252 by Jean_luetz
Time-Mapping LimeSurvey answers was created by Jean_luetz
Dear all,

I need to map the answers to LimeSurvey questions to a timeline in order to synch these answers to other continuous measures.

To my knowledge, you can record the Start-Time of the survey and the time spent on every question group in seconds. If this is true, would it be possible to create a timeline of survey answers by just cumulatively adding the question-group timings to the start date?

Does somebody know if the Start-Date captures the actual time the partcipant opens the link to the survey (lands on the page) or the time he or she clicks "start survey"?

If somebody has an alternative idea how to reliably time-map LS-answers it would greatly be appreciated!

Thanks and best regards,
J.
The topic has been locked.
  • Jean_luetz
  • Jean_luetz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #113383 by Jean_luetz
Replied by Jean_luetz on topic Time-Mapping LimeSurvey answers
Just in case someone stumbles upon the same problem:

you can request epoch time markers and record them into a hidden text question. Fair enough if a resolution in seconds does it for you.
See: www.aptigence.com.au/site/node/3

If anyone knows how to set time markers in milliseconds, please share!

Best,
J
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago - 9 years 5 months ago #113387 by tpartner
Replied by tpartner on topic Time-Mapping LimeSurvey answers
To get milliseconds, remove the rounding and dividing by 1000.

Placing this in the source of a short-text question will load that text input with the epoch time in milliseconds when the page loads:

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).ready(function(){
    $('#question{QID} input.text').val(new Date().getTime());
  });
</script>


Note that if you only want to load it once you will need to put in a test:

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).ready(function(){
    if($('#question{QID} input.text').val() == '') {
      $('#question{QID} input.text').val(new Date().getTime());
    }
  });
</script>


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 5 months ago by tpartner.
The topic has been locked.
  • Jean_luetz
  • Jean_luetz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #113391 by Jean_luetz
Replied by Jean_luetz on topic Time-Mapping LimeSurvey answers
Thank you very much!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose