Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Check if Date greater than previous Selection

Check if Date greater than previous Selection 2 years 1 month ago #109410

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
Dear LS Team,

I have 2 questionn:


Q1. When you buy your new House? [ANSWER IS CHOOSE MONTH AND YEAR]

ANSWER: 2013 OF JUNE [DATE FORMAT]

Q2. When you move to your new house? [ANSWER IS MONTH AND YEAR]
[valid answer in Q2 cannot less than Answer in Q1, so if responden choose date less of 2013 of June will rise alert message]

How to make date validation like question above in lime survey?


Need help

Thanks & Regards,

JajaS
The administrator has disabled public write access.

Check if Date greater than previous Selection 2 years 1 month ago #109415

  • jajas
  • jajas's Avatar
  • Offline
  • Senior Lime
  • Posts: 40
  • Karma: 0
Nobody can't help me :(
The administrator has disabled public write access.

Check if Date greater than previous Selection 2 years 1 month ago #109465

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6111
  • Thank you received: 1356
  • Karma: 532
Assuming the first question code is "date1", this seems to work as the question validation equation for a normal date question:
this >= date1



.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 1 month ago by tpartner.
The administrator has disabled public write access.

Check if Date greater than previous Selection 1 year 8 months ago #114443

  • jpw
  • jpw's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
tpartner

What question type are you using for this validation equation? I don't see a Question validation equation for the Date/Time question type
The administrator has disabled public write access.

Check if Date greater than previous Selection 1 year 8 months ago #114445

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6111
  • Thank you received: 1356
  • Karma: 532
Date question type. LS version 2.05.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Check if Date greater than previous Selection 1 year 8 months ago #114446

  • jpw
  • jpw's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
That explains it, I'm still on version 2.0. Looks like I need to upgrade, thanks!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.222 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form