Welcome to the LimeSurvey Community Forum

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

Simple numeric validation needed

  • davebostockgmail
  • davebostockgmail's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 weeks ago #195777 by davebostockgmail
Simple numeric validation needed was created by davebostockgmail
I don't know why I do not know this but my brain has had a complete meltdown.

Can someone please point me in the right direction for validation of a multiple numeric question where there are months and years needed

Q1_Months (0-11)
Q1_Years (0-40)

No matter what I have tried it doesn't seem to do this correctly.

V3.22.7

Thanks in advance
Dave
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 weeks ago #195780 by Joffm
Replied by Joffm on topic Simple numeric validation needed
I should say:
Exactly as you described it:

A min value of "0".
And the validation equation: (Q1_months<12 and Q1_years<41)
And a validation tip like: {if(Q1_months>11,"Please months in (0..11)",if(Q1_years>40,"Please years in (0..40)",""))} or whatever you like.







Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • davebostockgmail
  • davebostockgmail's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 weeks ago #195782 by davebostockgmail
Replied by davebostockgmail on topic Simple numeric validation needed
Thanks so much Joffm .. like I said ... brain freeze moment.

Dave
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 weeks ago #195783 by Joffm
Replied by Joffm on topic Simple numeric validation needed
I experienced this many times myself. ;)

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose