Welcome to the LimeSurvey Community Forum

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

[HOWTO] Show/Hide question depending on the time the survey is taken

  • markusfluer
  • markusfluer's Avatar Topic Author
  • Visitor
  • Visitor
7 years 3 months ago - 7 years 3 months ago #145940 by markusfluer
It is possible to hide or show questions depending on the local time.
For example the following statement makes a question only visible between 8 am and 8 pm.
Code:
(date('H') >= 8) and (date('H') <= 20)

There is a whole lot of possibilities with this date filter. A.e. show questions only on thursdays, or only in july.
Or every day another question to rule out automatic surveytaking.

These relevance-equation also work on subquestions.
Last edit: 7 years 3 months ago by markusfluer.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145946 by holch
Great: I have seen a few of those posts where there is actually no question, but a "how to" for something. These posts are very useful for many, but I have two points:
- It would be great to have this in the manual (and a link from this post to it)
- Write "How to:" in front of the title, because this would be great to know what the topic is about and to find it again.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145947 by holch
Maybe we should have a "How to" section in the forum.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145949 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 3 months ago by DenisChenu. Reason: first link with howto inside link
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose