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

TOPIC: Calcul based on 2 dates

Calcul based on 2 dates 4 years 2 weeks ago #88392

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1894
  • Thank you received: 469
  • Karma: 118
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 => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The administrator has disabled public write access.

Calcul based on 2 dates 4 years 1 week ago #88792

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1894
  • Thank you received: 469
  • Karma: 118
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 => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 4 years 1 week ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu

Calcul based on 2 dates 4 years 1 week ago #88800

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6568
  • Thank you received: 1477
  • Karma: 579
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 4 years 1 week ago #88839

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9568
  • Thank you received: 1374
  • Karma: 390
tpartner wrote:
Thanks Ben.
+1 ;)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.380 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form