Welcome, Guest
Username: Password: Remember me

TOPIC: Time limit- disable answer choice display

Time limit- disable answer choice display 2 years 11 months ago #69380

  • chinglnc
  • chinglnc's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Time limit- disable answer choice display 2 years 11 months ago #69381

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Time limit- disable answer choice display 2 years 11 months ago #69394

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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>
Last Edit: 2 years 11 months ago by DenisChenu. Reason: typo : one ;
The administrator has disabled public write access.

Re: Time limit- disable answer choice display 2 years 11 months ago #69396

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 11 months ago by tpartner.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.111 seconds
Donation Image