Welcome, Guest
Username: Password: Remember me

TOPIC: Date of birth format not valid

Date of birth format not valid 1 year 8 months ago #89037

  • dgrimard
  • dgrimard's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hello,

I'm currently working on a questionnaire on the 2.00 version.

I have dates of birth for families I want to put the in the month-year format and the scroll-down version. But when I test it it always says that the date is not valid. A problem I don't have when its dd mm yyy or just the year.

Is there a way to force the mm yyyy format???

Thanks for your help!
The administrator has disabled public write access.

Re: Date of birth format not valid 1 year 8 months ago #89089

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4118
  • Thank you received: 760
  • Karma: 346
This appears to be a bug.

Please file a bug report and...

1. Give as much information as possible.

2. Provide step-by-step instructions how to reproduce the problem.

3. Provide screenshots and a sample survey.

4. Post the link to the bug here so we can follow the progress.

In the meantime, you can work around the problem by using the "dd mm yyyy" format and add the following script to the question source. This will select the day = 01 option and hide the day dropdown.
<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){
 
		$('.date').each(function(i){
			$('.day option[value="01"]', this).attr('selected', 'selected');
			$('.day', this).hide();
		});
 
	});
 
</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.
Moderators: ITEd
Time to create page: 0.132 seconds
Donation Image