Welcome to the LimeSurvey Community Forum

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

Validation

  • dmaot2021
  • dmaot2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #211846 by dmaot2021
Validation was created by dmaot2021
Hi,

i encountered an interesting problem with LS Offline Survey. I'd like to validate some questions in my survey like {time1.value < time2.value} and did my usual setup. It works just fine on PC, however while testing on smartphone the validation seems to not work at all. Is this intended? Can I do something to make it work?

Best regards
dma
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #211862 by Joffm
Replied by Joffm on topic Validation
With the property ".value" you access the assessment value of the question.

the assessment value for the question if it is relevant (otherwise blank), or the text value if it is not a coded question.

Does assessment work at all in OfflineSurveys.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #211883 by Joffm
Replied by Joffm on topic Validation
Did you try to compare with
{strtotime(time1) lt strtotime(time2)}

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
3 years 9 months ago #211915 by aaskoura
Replied by aaskoura on topic Validation
Hi, assessments don't work on OfflineSurveys
The topic has been locked.
Moderators: holchMazitpartner

Lime-years ahead

Online-surveys for every purse and purpose