The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

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

TOPIC: Minimum year > Today

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

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
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

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 2 years 3 months ago #56187

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 166
  • 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 2 years 3 months ago #56193

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
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

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 2 years 3 months ago #56194

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 166
  • 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 2 years 3 months ago #56195

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
Placing my script inthe source of the date question should only affect that question (providing the ID is correct).
Cheers,
Tony

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 2 years 3 months ago #56196

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 166
  • 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 2 years 3 months ago #56411

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2867
  • Thank you received: 426
  • Karma: 246
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

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: DenisChenu, ITEd
Time to create page: 0.172 seconds
Donation Image