Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unable to submit date questions

  • intavg
  • intavg's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #152017 by intavg
Unable to submit date questions was created by intavg
I have created a survey which has a date question, followed by a calculated field that calculates the age of respondent based on the response to the date question. The age calculation also displays the entered date in the help area for testing (as {dob} )

The date question has a format of mm-dd-YYYY, the minimum date is 1900-01-01, the maximum date is "now". The date is a dropdown. All other values are default.

When entering any valid date in the dropdowns, I am unable to submit the page, getting the messages " This question is mandatory" and "Please complete all parts of the date."

In the age field where it shows the value of the date, the month is always 01, regardless of what month was actually selected.

I have tried removing the minimum and maximum dates, with no effect.
I have tried changing the format of the date with no effect.
I have tried changing the display of the month to short, full and number with no effect.

PHP: Tested with 5.6.24 and 7.1.2
Database: SQL Server 2014
LimeSurvey: 2.64.3+170327

Please advise what steps I can take to make the date field question type work?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 weeks ago #152019 by holch
Replied by holch on topic Unable to submit date questions
Could you provide a survey (.lss file) with only these two questions that are relevant and upload it here, so that we can have a look at it and test it here?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
7 years 2 weeks ago #152038 by jelo
Replied by jelo on topic Unable to submit date questions

intavg wrote: The date question has a format of mm-dd-YYYY, the minimum date is 1900-01-01, the maximum date is "now".

mm-dd-YY is not the same as 1900-01-01? Is that a mistype in the post or can you try 01-01-1900 in LimeSurvey?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • intavg
  • intavg's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #152163 by intavg
Replied by intavg on topic Unable to submit date questions
Not a typo, the documentation for Date questions specifies the minimum and maximum dates should be entered in YYYY-mm-dd format. I tried changing it to 01-01-1900, but it had no effect. Removing the minimum date entirely also had no effect.
The topic has been locked.
  • intavg
  • intavg's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #152164 by intavg
Replied by intavg on topic Unable to submit date questions
Attached is a .lss file with just the two questions. Testing, I still have the same issue, even just previewing the survey.

Attachment not found



Also, while testing I noticed that when debug mode is on, I get a warning about the message, instead of passing the month to mktime in the equation question apparently it is passing an empty string. This may be unrelated to the issue.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 weeks ago #152168 by holch
Replied by holch on topic Unable to submit date questions
No attachement.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
7 years 2 weeks ago #152188 by fvanderstarre
Replied by fvanderstarre on topic Unable to submit date questions
I think the issue was fixed in version 2.64.4 (build 170330) Mar 30, 2017:

-Fixed issue: Unable to use month in date (Denis Chenu)

So try and update to the most recent version (2.64.6 build 170332)....
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose