- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Problem using array filter
- mrsey
- Topic Author
- Offline
- New Member
Less
More
8 years 5 months ago #129023
by mrsey
Problem using array filter was created by mrsey
I'm trying to use the array filter to automatically fill up array subqustions based upon a multiple choice short text imput question.
I've set up the filter and the text from the multiple choice question is pulled down into the array just fine.
However, when I test the question I'm getting a redunant row at the end of the array list which is blank in terms of the question, but still has the check boxes active. It is like the array filter is generating an extra line for some reason?
I've used the sample question group from the manual here as a template: manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29
The funny thing is that I don't get the extra line for the question group containing just the sample question, but when I copy the question over to my main survey I get the extra line showing.
Can anyone advise as to how to loose this redundant line?
Thanks,
Matthew
I've set up the filter and the text from the multiple choice question is pulled down into the array just fine.
However, when I test the question I'm getting a redunant row at the end of the array list which is blank in terms of the question, but still has the check boxes active. It is like the array filter is generating an extra line for some reason?
I've used the sample question group from the manual here as a template: manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29
The funny thing is that I don't get the extra line for the question group containing just the sample question, but when I copy the question over to my main survey I get the extra line showing.
Can anyone advise as to how to loose this redundant line?
Thanks,
Matthew
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11678
- Thank you received: 2748
8 years 4 months ago #129033
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 Problem using array filter
Guess 1: The cursor jumps jumped to the next text box and thus limesurvey thinks the question was marked.
Guess 2: Try with a standard template and see what happens.
Guess 2: Try with a standard template and see what happens.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- mrsey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 4 months ago #129051
by mrsey
Replied by mrsey on topic Problem using array filter
Thanks for your reply.
I've checked those neither seems to be the issue. Changing the template has no effect and I've not moved that far with the curser so that does not explain why the unused rows are showing.
I've set up the survey here: www.sainthelena.gov.sh/survey/index.php?...vey/index&sid=627952
It is actually now showing all 10 possible rows, even though in the previous mode it was only showing the single redundant row below any rows that were generated by the array filter.
Any other ideas?
I've checked those neither seems to be the issue. Changing the template has no effect and I've not moved that far with the curser so that does not explain why the unused rows are showing.
I've set up the survey here: www.sainthelena.gov.sh/survey/index.php?...vey/index&sid=627952
It is actually now showing all 10 possible rows, even though in the previous mode it was only showing the single redundant row below any rows that were generated by the array filter.
Any other ideas?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
8 years 4 months ago #129052
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 Problem using array filter
Can you attach an exported survey .lss file?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- mrsey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 4 months ago #129055
by mrsey
Replied by mrsey on topic Problem using array filter
Sure, it's attached
Attachments:
The topic has been locked.
- mrsey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 4 months ago - 8 years 4 months ago #129056
by mrsey
Replied by mrsey on topic Problem using array filter
Ops, that one had the wrong array filter setting!
This is right.
Sorry
This is right.
Sorry
Attachments:
Last edit: 8 years 4 months ago by mrsey. Reason: spelling error
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
8 years 4 months ago #129060
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 Problem using array filter
Please attach a survey export (.lss), not a group export (so we don't have to create a survey).
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- mrsey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 4 months ago #129061
by mrsey
Replied by mrsey on topic Problem using array filter
Sorry about that - .lss file attached.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10114
- Thank you received: 3595
8 years 4 months ago #129062
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 Problem using array filter
The subquestion codes don't match. The last code for the array should be "SQ10".
You could also place relevance on the second question so it is hidden until at least one household member is entered in question 1.
Modified survey attached.
You could also place relevance on the second question so it is hidden until at least one household member is entered in question 1.
Code:
count(that.copy2.NAOK) > 0
Modified survey attached.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: delarammahdaviii, mrsey
The topic has been locked.
- mrsey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 4 months ago #129063
by mrsey
Replied by mrsey on topic Problem using array filter
That's got it - thanks for your help. Much appreciated!
The topic has been locked.