Formated expiration date and time in the Survey Description

More
4 months 2 weeks 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))}

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
4 months 2 weeks 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
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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))}

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #185001 by DenisChenu
@Joffm & @jelo : you can use EXPIRY from token in survey ? Really ?

You don't have to use TOKEN: ?
{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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!