Welcome to the LimeSurvey Community Forum

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

Zeitstempel

  • Fluffelpuffel03
  • Fluffelpuffel03's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #230664 by Fluffelpuffel03
Zeitstempel was created by Fluffelpuffel03
Please help us help you and fill where relevant:
Your LimeSurvey version:  5.3.24+220711
Own server or LimeSurvey hosting:  LimeSurvey Community Edition
Survey theme/template:
==================
Hello all.
Is there a validation equation that allows a question to be displayed only between 5pm and 8am?
Kind regards

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago - 2 years 6 months ago #230670 by Joffm
Replied by Joffm on topic Zeitstempel
Hi,
you obviously are looking for a condition not a validation, aren't you?

Well a quick idea:
strtotime(date("H:i")) > mktime(17,0,0) OR strtotime(date("H:i")) < mktime(8,0,0)

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 6 months ago by Joffm.
The following user(s) said Thank You: Fluffelpuffel03

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose