Check out the LimeSurvey source code on GitHub!

Question type - Date

More
6 years 2 weeks ago #56503 by tpartner
I can't explain that. I have tested in IE and Firefox and it works fine.

Can you put a simple alert in to see if the script is running?
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
		$('#question426 select.day option[value="01"]').attr("selected", "selected");
		$('#question426 select.day').hide();
		alert ('Script runs!');  
	})
 
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56506 by DPajak
Same issue. The script is running in the single question preview but not in the whole survey preview.

Is it possible to send you my login informations, so you can have a look by yourself?

By the way, I have tested in Safari and Firefox.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56507 by tpartner
Sure, send me a PM.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DPajak

Please Log in to join the conversation.

More
6 years 2 weeks ago - 6 years 2 weeks ago #56523 by DPajak
Thanks to Tony the problem is solved.

There was a JavaScript bug (see bugs.limesurvey.org/view.php?id=4938 ). It will be fixed in a future release.

In the meantime one can apply the fix in the installation - in /scripts/survey_runtime.js.

Change line 68 from :
if ((autoArray.list.length > 0)){

to:
if (autoArray.list != "undefined"){
Last Edit: 6 years 2 weeks ago by DPajak.

Please Log in to join the conversation.

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