Can I insert a date that is X days into the future into the last page?

Mehr
3 Jahre 9 Monate her #127994 von zetetic
I want to incentivize my survey by offering a coupon at the end of the session. I would like that coupon to be valid for X days which would mean calculating a date that is X days in to the future. Can that be done using one of the expression functions?

Thank you all

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
3 Jahre 9 Monate her #128023 von tpartner
This expression will give a date 7 days from present (the 604800 is the number of seconds in 7 days):

{date('d/m/Y' , time()+604800)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 9 Monate her #128040 von zetetic
Is there a special way to insert this? When I do this, this appears:

< / span > < spanstyle="color: rgb(153, 0, 0);" > date < / span > < spanstyle="color: rgb(0, 153, 0);" > ( < / span > < spanstyle="color: rgb(0, 0, 255);" > 'd/m/Y' < / span > < spanstyle="color: rgb(51, 153, 51);" > , < / span > < spanstyle="color: rgb(153, 0, 0);" > time < / span > < spanstyle="color: rgb(0, 153, 0);" > ( < / span > < spanstyle="color: rgb(0, 153, 0);" > ) < / span > < spanstyle="color: rgb(51, 153, 51);" > + < / span > < spanstyle="color: rgb(204, 102, 204);" > 604800 < / span > < spanstyle="color: rgb(0, 153, 0);" > ) < / span > < spanstyle="color: rgb(0, 153, 0);" >

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 9 Monate her #128053 von tpartner
It is inserted as any other Expression Manager expression. Here's a sample equation type question:

Dateianhang:

Dateiname: limesurvey...5849.lsq
Dateigröße:2 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
3 Jahre 9 Monate her #128072 von holch
You can't insert this via the WYSIWYG editor, you need to write it into the source code / plain text view.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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