I went through the forum in order to find an answer to my question, but I did. I'll try to explain it clearly.
I know how to set conditions in order to hide a question. If I understand clearly, a question always shows, unless you specify the conditions under which it should show. Then, it doesn't show unless those conditions are met.
I would like to do the contrary: always show a question unless a specific condition is met.
For instance:
1. Please indicate for each objects how many you own. (Type of question: Array numbers)
Lamp:
Table:
Bed:
Chair:
Forks:
Spoon:
2. If it was possible to get one free, would you get a lamp? (Question type: Yes/no)
I'd like the second question to show, unless a person indicated, in the first questions, that they own one lamp or more.
Is that possible?
By the way, I am using LS Version 2.52+ and the default theme.
You would need to check what question/subquestion code allows you to access the subquestion "lamp" in your case.
Then you would use this subquestion code, let's say it is "lamp" and insert something like this into the relevation equation for the question that you want to hide/show.
Code:
lamp >=1
To find out how to access the subquestion, the survey / question logic file helps quite a bit.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
But, that will show the question only to people who said they had 1 or more lamp. Doesn't it?
But, I want to hide the question to those people and show it to the rest.
OK, I think I managed to get what you wanted to do. See the attached question group. Your second question shows, but as soon as you insert a value higher than 0 in the box, it disappears. So I think this is what you wanted to achieve.
(You can ignore the text display question, this is only to make sure, what the output for the equation is with the code i was using. So just control.)
However, I would suggest a few changes to your approach, that would make it simpler and clearer.
I would NOT show the second question until someone filled in the first question and you actually want them to answer it. It makes more sense than to show it, and then suddenly hide it when they answer differently. If the question is on a different page, this might not be imporant, but if both questions are on the same page, this can be confusing behaviour and actually leed to respondents change their first answer.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.