- Posts: 21
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditional array - Other Empty
- apoggio
- Topic Author
- Offline
- Junior Member
Less
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
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:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
6 years 4 months ago #160618
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
The topic has been locked.
- apoggio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
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
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
6 years 4 months ago - 6 years 4 months ago #160645
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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: 6 years 4 months ago by Joffm.
The topic has been locked.
- apoggio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
6 years 4 months ago #160646
by apoggio
Replied by apoggio on topic Conditional array - Other Empty
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
6 years 4 months ago #160653
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- apoggio
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
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.
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.
Attachments:
Last edit: 6 years 4 months ago by apoggio.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12713
- Thank you received: 3924
6 years 4 months ago - 6 years 4 months ago #160670
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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: 6 years 4 months ago by Joffm.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
6 years 4 months ago #160674
by DenisChenu
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.
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.