Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Question type - Date

Re: Aw: Re: Aw: Re: Aw: Re: Aw: Question type - Date 3 years 2 months ago #56503

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Aw: Re: Aw: Question type - Date 3 years 2 months ago #56506

  • DPajak
  • DPajak's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Aw: Re: Aw: Question type - Date 3 years 2 months ago #56507

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
Sure, send me a PM.
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.
The administrator has disabled public write access.
The following user(s) said Thank You: DPajak

Aw: Re: Aw: Re: Aw: Re: Aw: Re: Aw: Question type - Date 3 years 2 months ago #56523

  • DPajak
  • DPajak's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
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: 3 years 2 months ago by DPajak.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.194 seconds
Donation Image