Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Date as a condition

  • Eewgets
  • Eewgets's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago #149458 by Eewgets
Date as a condition was created by Eewgets
I'm struggling with my questionnaire, build in LimeSurvey 2.6.4, with one question. In an already active questionnaire, I would like to build a condition as follows:


Q1: when did or will X happen? (Date, can be in past or now or future)

Q2: did you do XX on that moment? (radiobuttons)


When the answer on Q1 is in the past or today, I want Q2 to appear. When it is in the future, I don't want it to appear. People are answering my questionnaire on different moments in 2 years, so I can not set a regular date. It depends on the date that they are filling in the questionnaire. I thought it had to be something with the expression "now" in the conditions part, but I can't figure out how I should do this.


Is this possible in LS? And how should I do this?
The topic has been locked.
More
7 years 2 weeks ago #149463 by jelo
Replied by jelo on topic Date as a condition
You could try to the relevance equation of Q2 to display the question only if date entered differs from today. See manual.limesurvey.org/Expression_Manager...ce_between_two_dates to learn more about calculation with dates and adapt to your needs.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose