Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Calcul based on 2 dates

Calcul based on 2 dates 3 years 8 months ago #88392

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
Hi Denis,
I attach the sample survey with a new approach directly based on the validation of my "ndays" variable (can't be negative value !)
Maybe this is not the pefect way but do the job... (could be improved by an alert or confirm box with direct return to previous page )

What's your opinion?
Attachments:
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Calcul based on 2 dates 3 years 8 months ago #88792

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 3 years 8 months ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu

Calcul based on 2 dates 3 years 8 months ago #88800

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6122
  • Thank you received: 1357
  • Karma: 533
Thanks Ben.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Calcul based on 2 dates 3 years 8 months ago #88839

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9259
  • Thank you received: 1320
  • Karma: 382
tpartner wrote:
Thanks Ben.
+1 ;)
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.190 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form