- Posts: 24
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Question about validating array with textboxes
- mt9999
- Topic Author
- Offline
- Junior Member
Less
More
1 year 11 months ago #228513
by mt9999
Question about validating array with textboxes was created 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.
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.
Attachments:
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
1 year 11 months ago #228515
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Question about validating array with textboxes
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
1 year 10 months ago #228756
by mt9999
Replied by mt9999 on topic Question about validating array with textboxes
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!
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.