Welcome to the LimeSurvey Community Forum

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

Question about validating array with textboxes

  • mt9999
  • mt9999's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 11 months ago #228513 by mt9999
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.11
Own server or LimeSurvey hosting: LimeSurvey
Survey theme/template: Fruity
==================
Hi all, I've got an array type question with implemented textboxes. Wondering how to put in a question validation to restrict values to be greater than 0 if they type into the textbox. I tried using the below validation in the subquestion validation in the 2nd question but it seems to not restrict any values. If I use it in the 1st question, it seems to make it mandatory to type in all fields before the participant can move on. 

(G00Q02SQ001.NAOK ge 0 AND G00Q02ASQ001.NAOK le 1000000) OR
(G00Q02SQ002.NAOK ge 0 AND G02Q02ASQ002.NAOK le 1000000) OR ... 

I've attached a sample survey! Thank you all for any help you can provide.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #228515 by Joffm
In such cases, activate the survey and enter some well defined data.
In the answer table you will see what to do.


So, either the cell of the first subquestion is empty (if answered "No") or it is (greater or equal 0 and less or equal 1000000)
and the next subquestions equally 
Enter the validation in Q1.
   

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • mt9999
  • mt9999's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 10 months ago #228756 by mt9999
Hi Joffm,
Thank you helping out!
For some reason, mine is still forcing participants to enter something into the field even if they indicated "No".

Is it an issue with my question validation equation?
(G00Q02SQ001.NAOK ge 0 AND G00Q02ASQ001.NAOK le 1000000) OR
(G00Q02SQ002.NAOK ge 0 AND G02Q02ASQ002.NAOK le 1000000) OR ...

I also have mandatory turned off on this question already.

Would I be able to see how your test survey is set up for this question?

Thank you!
Attachments:

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose