Check out the LimeSurvey source code on GitHub!

Time limit- disable answer choice display

More
5 years 3 months ago #69380 by chinglnc
Hi

I'm wondering whether I could disable the answer choice using the time limit function?

For example, I need to make sure participants finishes listening to the audio (which would be the same length as the timer) before choosing their answer.

Is that possible at all?

Please advise.

Please Log in to join the conversation.

More
5 years 3 months ago #69381 by Mazi
The timing functions are limited to the features described here: docs.limesurvey.org/Advanced+question+se...imeSurvey#time_limit

To solve your problem you'd have to modify the source code or code some customized Javascript which is connected to the timer or uses it's own timer.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #69394 by DenisChenu
Hello,

You can hide submit button at loading of page and show it after X second with settimeout .

A script like this:
<script type="text/javascript" charset="utf-8">
 
$(document).ready(function() {	
$("input.submit").hide();
window.setTimeout(function() {
$("input.submit").show();
}, 5000)
});
});
</script>

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 5 years 3 months ago by DenisChenu. Reason: typo : one ;

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #69396 by tpartner
Or use a script similar to Shnoulle's to disable a text input until the time has elapsed (where "QQ" is the question ID):
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
 
		$('#questionQQ input.text).attr('disabled', true);
 
		setTimeout(function() { 
			$('#questionQQ input.text).attr('disabled', false);
		}, 5000);
	});
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 3 months ago by tpartner.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form