Check out the LimeSurvey source code on GitHub!

Minimum year > Today

More
6 years 2 weeks ago #56172 by tpartner
Yeah, you should be able to put a listener on a first date question to control the behavour of a second date question but you'll need to consider how to handle things like what to do if a respondent returns to Q1 and changes the date to something later than Q2. The script would also be dependent on the date format.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56187 by waitz
Yes, I thought it might be a bit more complicated than what I actually gain. What I have now is the most important, and I have to deal with the fact that a date picker in a previous question group, is also affected by this script for some reason. And it shouldn't

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56193 by tpartner
It should not affect any other date pickers if you use the question ID in the selector.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in to join the conversation.

More
6 years 2 weeks ago #56194 by waitz

tpartner wrote: It should not affect any other date pickers if you use the question ID in the selector.

Ahh, and now comes the green question: In which question..? Together with the script I put in earlier (and where?)? or in the previous date picker question?

Or do I add it to the calendar selector code itself?
:blush:

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56195 by tpartner
Placing my script inthe source of the date question should only affect that question (providing the ID is correct).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
6 years 2 weeks ago #56196 by waitz
But I see now that the piece of code was already there...

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |

Please Log in to join the conversation.

More
6 years 2 weeks ago #56411 by tpartner
Okay, I finally got around to adding it to the workarounds section - docs.limesurvey.org/tiki-index.php?page_...m_Date_in_Datepicker

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form