Welcome to the LimeSurvey Community Forum

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

Formated expiration date and time in the Survey Description

  • pokeydale
  • pokeydale's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184980 by pokeydale
In the survey invitation and reminder I am able to add the following code (see below) to get a nicely formatted expiration date and time. When I add the same code to the survey description I get nothing. Is there way to get the same formating in the body of the assessment (description, welcome message, questions, etc..)

{date("l, F jS, Y h:ia",strtotime(EXPIRY))}
The topic has been locked.
More
4 years 10 months ago #184985 by jelo

pokeydale wrote: {date("l, F jS, Y h:ia",strtotime(EXPIRY))}

What version of LimeSurvey is used?

With Version 3.17.3+190429 i can use the code in the welcome message.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • pokeydale
  • pokeydale's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #184992 by pokeydale
We are using version 3.17.3+190429... I am not able to get the same results. Is this the correct code?

{date("l, F jS, Y h:ia",strtotime(EXPIRY))}
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #184993 by Joffm
Same as Jelo:

Here in the demo installation:


So without more information we are not able to help.
Send a sample (*.lss) that shows your problem

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #185001 by DenisChenu
@Joffm & @jelo : you can use EXPIRY from token in survey ? Really ?

You don't have to use TOKEN: ?
Code:
{date("l, F jS, Y h:ia",strtotime(TOKEN:EXPIRY))}

It's strange if it work without TOKEN:

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
4 years 10 months ago #185003 by jelo
It's EXPIRY from the Surveysetttings, not an individual token expiry date.

LimeSurveys lazy concept of using variablenames more then once via context is the way to hell ;-)

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #185006 by DenisChenu

jelo wrote: It's EXPIRY from the Surveysetttings, not an individual token expiry date.

Oh right :)
But EXPIRY in mail (invite and remind) are TOKEN:EXPIRY

jelo wrote: LimeSurveys lazy concept of using variablenames more then once via context is the way to hell ;-)

Good idea to force usage of TOKEN:XXX for mail (invite and remind) : less errrors :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #185035 by tpartner

Good idea to force usage of TOKEN:XXX for mail (invite and remind)

I agree.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 10 months ago #185036 by DenisChenu
This is a previous survey broker … must take care …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose