- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I insert a date that is X days into the future into the last page?
- zetetic
- Topic Author
- Offline
- New Member
Less
More
8 years 5 months ago #127994
by zetetic
Can I insert a date that is X days into the future into the last page? was created by 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
Thank you all
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 5 months ago #128023
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I insert a date that is X days into the future into the last page?
This expression will give a date 7 days from present (the 604800 is the number of seconds in 7 days):
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- zetetic
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
8 years 5 months ago #128040
by zetetic
Replied by zetetic on topic Can I insert a date that is X days into the future into the last page?
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);" >
< / 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);" >
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 5 months ago #128053
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Can I insert a date that is X days into the future into the last page?
It is inserted as any other Expression Manager expression. Here's a sample equation type question:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
8 years 5 months ago #128072
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Can I insert a date that is X days into the future into the last page?
You can't insert this via the WYSIWYG editor, you need to write it into the source code / plain text view.
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.