Welcome to the LimeSurvey Community Forum

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

Problem using array filter

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
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #129033 by holch
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.

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.
More
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?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #129052 by tpartner
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.
More
8 years 4 months ago #129055 by mrsey
Replied by mrsey on topic Problem using array filter
Sure, it's attached
The topic has been locked.
More
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
Last edit: 8 years 4 months ago by mrsey. Reason: spelling error
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #129060 by tpartner
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.
More
8 years 4 months ago #129061 by mrsey
Replied by mrsey on topic Problem using array filter
Sorry about that - .lss file attached.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #129062 by tpartner
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.
Code:
count(that.copy2.NAOK) > 0

Modified survey attached.

File Attachment:

File Name: limesurvey...ied).lss
File Size:26 KB

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: delarammahdaviii, mrsey
The topic has been locked.
More
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.

Lime-years ahead

Online-surveys for every purse and purpose