Time-Mapping LimeSurvey answers

More
3 years 2 months ago #113252 by Jean_luetz
Jean_luetz created the topic: Time-Mapping LimeSurvey answers
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.

Please Log in to join the conversation.

More
3 years 2 months ago #113383 by Jean_luetz
Jean_luetz replied the 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

Please Log in to join the conversation.

More
3 years 2 months ago - 3 years 2 months ago #113387 by tpartner
tpartner replied the 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:

<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:

<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: 3 years 2 months ago by tpartner.

Please Log in to join the conversation.

More
3 years 2 months ago #113391 by Jean_luetz
Jean_luetz replied the topic: Time-Mapping LimeSurvey answers
Thank you very much!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!