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
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 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: 8 years 5 months ago by markusfluer.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 5 months ago #145947 by holch
Maybe we should have a "How to" section in the forum.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 5 months ago - 8 years 5 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 support - Plugins, theme and development .
I don't answer to private message.
Last edit: 8 years 5 months ago by DenisChenu. Reason: first link with howto inside link
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose