- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
bug in matrix fields?
1 year 2 weeks ago #225783
by gunfood
bug in matrix fields? was created by gunfood
Your LimeSurvey version: 5.3.2 (220302)
Own server or LimeSurvey hosting: own server
Survey theme/template: vanilla_extended
==================
Hi,
I created a survey to request names by different departments. It's just 5 questions long and I think two of them are the important.
As our largest department has 45 employes, I created a matrix question with maximum 45 fields. On top of it I created a field asking how many names will be inserted to redurce the fields depending on the given number.
In my test I entered 16 as number and inserted 16 names (other tests larger 10 for the fields deliver the same result). In the admin area I see the send answer but fields from 3-10 are missing. Not moved somethere else, just not in the answers. As the survey should be closed, we will send auth-codes and these are single use. So the users are not able to check the submitted form again.
I exported the created survey and attached it here. Does someone have a idea, why this happens?
Thanks
René
Own server or LimeSurvey hosting: own server
Survey theme/template: vanilla_extended
==================
Hi,
I created a survey to request names by different departments. It's just 5 questions long and I think two of them are the important.
As our largest department has 45 employes, I created a matrix question with maximum 45 fields. On top of it I created a field asking how many names will be inserted to redurce the fields depending on the given number.
In my test I entered 16 as number and inserted 16 names (other tests larger 10 for the fields deliver the same result). In the admin area I see the send answer but fields from 3-10 are missing. Not moved somethere else, just not in the answers. As the survey should be closed, we will send auth-codes and these are single use. So the users are not able to check the submitted form again.
I exported the created survey and attached it here. Does someone have a idea, why this happens?
Thanks
René
Attachments:
Please Log in to join the conversation.
1 year 2 weeks ago #225788
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic bug in matrix fields?
Remove the quotes from the numeric values in your sub-question relevance. You should be comparing to numbers, not strings.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: rene.suhle
Please Log in to join the conversation.
- rene.suhle
-
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
1 year 2 weeks ago #225792
by rene.suhle
Replied by rene.suhle on topic bug in matrix fields?
Thanks. This fixed it. It the conditional field is used as text, are the quotes in the sub-section relevance needed?
Please Log in to join the conversation.
1 year 2 weeks ago #225798
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic bug in matrix fields?
If you check if the answer equals a certain string / text, then yes, the " are needed.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
1 year 2 weeks ago - 1 year 2 weeks ago #225804
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic bug in matrix fields?
To add an explanation:
If you use quotes you cOmpare strings, not numbers
And strings are ordered in alphabetical order as in the phone book, while numbers in numerical order.
So instead of the numerical order
1,2,3,4,...,9,10,11,12,...,18,19,20,21,22,...,29,30,31,32
you get the alphabetical order
"1","10","11","12",...,"19","2","20","21",...,"28","29","3","30","31","32";"4","5","6","7","8","9"
You see: "2" is greater than "16"
Joffm
If you use quotes you cOmpare strings, not numbers
And strings are ordered in alphabetical order as in the phone book, while numbers in numerical order.
So instead of the numerical order
1,2,3,4,...,9,10,11,12,...,18,19,20,21,22,...,29,30,31,32
you get the alphabetical order
"1","10","11","12",...,"19","2","20","21",...,"28","29","3","30","31","32";"4","5","6","7","8","9"
You see: "2" is greater than "16"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 2 weeks ago by Joffm.
Please Log in to join the conversation.