Question in (current) date format

Mehr
3 Jahre 2 Monate her #142692 von hanwerts
I want to program a question in date format in which I want to know when the user started a course. This in itself is an easy task. I use the drop down option in which the user can enter the full date or select day, month and year from a calendar.

I would like to compare the input from the user to a predefined date. The latter one is dynamic, i.e. it should be the current date, so it will change every day. I came up with the idea that the current date will be set using a hidden question which precedes the date question presented to the user.

How can I set the current date in a hidden question and use it in the next date question? And how can I validate that the input from the user will be in the past (i.e. lower than current date from the hidden question)?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
3 Jahre 2 Monate her #142696 von jelo

hanwerts schrieb: How can I set the current date in a hidden question and use it in the next date question?

{date('Y-m-d')} should work in a equation question.

You might calculate differences in e.g days and compare them.
www.limesurvey-consulting.com/how-to-cal...nd-the-current-date/

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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha