Unable to submit date questions

More
8 months 2 weeks ago #152017 by intavg
intavg created the topic: Unable to submit date questions
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?

Please Log in to join the conversation.

More
8 months 2 weeks ago #152019 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
8 months 2 weeks ago #152038 by jelo
jelo replied the 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?

Please Log in to join the conversation.

More
8 months 1 week ago #152163 by intavg
intavg replied the 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.

Please Log in to join the conversation.

More
8 months 1 week ago #152164 by intavg
intavg replied the 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.

Please Log in to join the conversation.

More
8 months 1 week ago #152168 by holch
holch replied the topic: Unable to submit date questions
No attachement.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
8 months 1 week ago #152188 by fvanderstarre
fvanderstarre replied the 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)....

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!