Welcome, Guest
Username: Password: Remember me

TOPIC: Default date, based on token

Default date, based on token 2 years 8 months ago #73715

Since 1.92RC3 date fields can have defaults (Great!). It took me some time before I understood the date in the default should be entered as 1980.05.15 and not as 10.05.1980, as is usual.
More important: I tryed to set the default on a token value: {TOKEN:ATTRIBUTE_6} (i.e. the date of birth). However, the value always becomes 30.11.1999, even if the token is entered as 1952.05.10, or 10.05.1952
Am:blush: I doing something wrong? Or is this a bug I should report?
Thanks,
Frans
Last Edit: 2 years 8 months ago by fransmarcelissen.
The administrator has disabled public write access.

Re: Default date, based on token 2 years 8 months ago #73717

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
It should work. Since it isn't please report a bug, and attach a survey that lets us easily reproduce the problem. Feel free to make the bug report private if you don't want anyone but developers to be able to see your survey.
The administrator has disabled public write access.

Re: Default date, based on token 2 years 8 months ago #73720

I'll do. I will add a test survey.
Thanks
Frans
The administrator has disabled public write access.

Re: Default date, based on token 2 years 8 months ago #73722

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Frans-

There were two problems:
(1) Bug in LS, fixed in revision 12361 (so will be in 1.92 RC4)
(2) Dates in default values (or {TOKEN:ATTRIBUTE_X} in your case), need to be in the format yyyy-mm-dd. That is the internal storage representation.

/Tom
The administrator has disabled public write access.
The following user(s) said Thank You: fransmarcelissen

Re: Default date, based on token 2 years 8 months ago #73723

Thanks.
I am looking forward to RC4.
Frans
The administrator has disabled public write access.

Re: Default date, based on token 2 years 8 months ago #73748

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
fransmarcelissen wrote:
Thanks.
I am looking forward to RC4.
Frans
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.111 seconds
Donation Image