Welcome to the LimeSurvey Community Forum

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

Conditional array - Other Empty

  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160615 by apoggio
Conditional array - Other Empty was created by apoggio
Hello,

I'm building an array depending of answers of a previous question.
It works well excepted the fact that ''Other'' field shows even if not selected. (see attached picture).

Is there a way to avoid this blank line at the end of the array, and having it available only if a text is entered in ''Other''.

Thx

The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160618 by Joffm
Replied by Joffm on topic Conditional array - Other Empty
How did you do that? By array filter?

How did you enter the "Other" in the grid subquestions?

It's like that:







Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: apoggio
The topic has been locked.
  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160619 by apoggio
Replied by apoggio on topic Conditional array - Other Empty
Thanks a lot.

If fact the code of my sub-question in the array was different then
other - {H6_other}...
It was
SQ009 - {H6_other} and then it was not working.

Thanks a lot
The topic has been locked.
  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160628 by apoggio
Replied by apoggio on topic Conditional array - Other Empty
One last question.
If you select 'other' only the sub question does not appear in the array.
Is there a workaround?
Thx
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160645 by Joffm
Replied by Joffm on topic Conditional array - Other Empty
There is no workaround needed.

It works.




But you didn't tell us your LS version.
I worked with the 2.50-2.70 branch. Is yours different?
Seems to be, if I see your screenshots.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 4 months ago by Joffm.
The topic has been locked.
  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160646 by apoggio
Replied by apoggio on topic Conditional array - Other Empty
It does not work on my survey.

If I do not select an other answer than ''other'' the table does not show_up




The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160653 by Joffm
Replied by Joffm on topic Conditional array - Other Empty
And you still didn't say which version you are working with and which template you are using.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago - 6 years 4 months ago #160667 by apoggio
Replied by apoggio on topic Conditional array - Other Empty
Hello, Sorry.

LimeSurvey is in version Version 2.70.0+170921
The template is news_paper on which I've added a logo in the template editor

I've tried with the default template and I have the same behaviour with ''other'' only selected (text in it) the array does not show up until I select and other sub_question.

File Attachment:

File Name: limesurvey...9128.lss
File Size:46 KB
Last edit: 6 years 4 months ago by apoggio.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160670 by Joffm
Replied by Joffm on topic Conditional array - Other Empty
Hi,

therefore we always ask for a sample.

Change your relevance equation to:

((H6_SQ001.NAOK == "Y" or H6_SQ002.NAOK == "Y" or H6_SQ003.NAOK == "Y" or H6_SQ004.NAOK == "Y" or H6_SQ005.NAOK == "Y" or H6_SQ006.NAOK == "Y" or H6_SQ007.NAOK == "Y" or H6_SQ008.NAOK == "Y" or !is_empty(H6_other)))


Explanation: H6_other is not coded as "Y" or "_blank", but is the varbatim.

Best way to find out: Activate the survey enter some data and have a look to the results.
Here you see:



BUT: Your question H6 is mandatory. So the relevance equation in H7 is obsolete; there is always at least on item checked.


Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 4 months ago by Joffm.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160674 by DenisChenu
Replied by DenisChenu on topic Conditional array - Other Empty
No a dev topic, moved

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose