The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

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

TOPIC: Question type - Date

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

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
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

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 2 years 3 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 2 years 3 months ago #56507

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
Sure, send me a PM.
Cheers,
Tony

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 2 years 3 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: 2 years 3 months ago by DPajak.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: DenisChenu, ITEd
Time to create page: 0.294 seconds
Donation Image