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

TOPIC: Minimum year > Today

Re: Minimum year > Today 3 years 7 months ago #56172

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4139
  • Thank you received: 767
  • Karma: 349
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.

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: Minimum year > Today 3 years 7 months ago #56187

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
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 |
The administrator has disabled public write access.

Re: Minimum year > Today 3 years 6 months ago #56193

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4139
  • Thank you received: 767
  • Karma: 349
It should not affect any other date pickers if you use the question ID in the selector.

Untitled-1_2011-02-02.png
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.

Re: Minimum year > Today 3 years 6 months ago #56194

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
tpartner wrote:
It should not affect any other date pickers if you use the question ID in the selector.

Untitled-1_2011-02-02.png
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 |
The administrator has disabled public write access.

Re: Minimum year > Today 3 years 6 months ago #56195

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4139
  • Thank you received: 767
  • Karma: 349
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.

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: Minimum year > Today 3 years 6 months ago #56196

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
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 |
The administrator has disabled public write access.

Re: Minimum year > Today 3 years 6 months ago #56411

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4139
  • Thank you received: 767
  • Karma: 349
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image