Conditional array - Other Empty

More
9 months 7 hours 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 or Create an account to join the conversation.

More
9 months 6 hours 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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: apoggio

Please Log in or Create an account to join the conversation.

More
9 months 6 hours 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 or Create an account to join the conversation.

More
9 months 4 hours 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 or Create an account to join the conversation.

More
8 months 4 weeks ago - 8 months 4 weeks 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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last Edit: 8 months 4 weeks ago by Joffm.

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks 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 or Create an account to join the conversation.

More
8 months 4 weeks 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


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks ago - 8 months 4 weeks 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: 8 months 4 weeks ago by apoggio.

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks ago - 8 months 4 weeks 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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last Edit: 8 months 4 weeks ago by Joffm.

Please Log in or Create an account to join the conversation.

More
8 months 4 weeks 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 or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!