Conditional array - Other Empty

More
4 weeks 1 hour ago #160615 by apoggio
apoggio created the topic: Conditional array - Other Empty
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

Attachments:

Please Log in to join the conversation.

More
4 weeks 48 minutes ago #160618 by Joffm
Joffm replied the 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
Attachments:
The following user(s) said Thank You: apoggio

Please Log in to join the conversation.

More
4 weeks 37 minutes ago #160619 by apoggio
apoggio replied the 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

Please Log in to join the conversation.

More
3 weeks 6 days ago #160628 by apoggio
apoggio replied the 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

Please Log in to join the conversation.

More
3 weeks 6 days ago - 3 weeks 6 days ago #160645 by Joffm
Joffm replied the 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
Attachments:
Last Edit: 3 weeks 6 days ago by Joffm.

Please Log in to join the conversation.

More
3 weeks 6 days ago #160646 by apoggio
apoggio replied the 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




Attachments:

Please Log in to join the conversation.

More
3 weeks 6 days ago #160653 by Joffm
Joffm replied the topic: Conditional array - Other Empty
And you still didn't say which version you are working with and which template you are using.

Joffm

Please Log in to join the conversation.

More
3 weeks 6 days ago - 3 weeks 6 days ago #160667 by apoggio
apoggio replied the 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
Attachments:
Last Edit: 3 weeks 6 days ago by apoggio.

Please Log in to join the conversation.

More
3 weeks 6 days ago - 3 weeks 6 days ago #160670 by Joffm
Joffm replied the 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
Attachments:
Last Edit: 3 weeks 6 days ago by Joffm.

Please Log in to join the conversation.

More
3 weeks 6 days ago #160674 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!