I have five groups in my survey. Groups 1 and 2 are always shown. But I would like to show either group 3, group 4 or group 5 based on an answer given in Group 1. Is this at all possible? I tried my hand at this by entering a condition in the "Relevance" field in each group's summary section. Here is what I entered (in bold):
Show Group 3 if "Q2 == A1" or "Q3 == A1"
Show Group 4 if "Q2 == A2"
Show Group 5 if "Q2 == A3" or "Q3 == A2"
At the moment all three groups are displayed, regardless of what the conditions say/don't say.
Is there a way of doing what I'm trying to do? If not, is there an alternative method that could help me achieve what I want? (Side note: there are about 20 questions in each group, so creating conditions for each one individually is going to be a bit tedious..)
I think you should specify Q1.NAOK == "A1" || Q3.NAOK == "A1" (where .NAOK means "No Answer OK") etc....
(assuming your questions aren't arrays or multiple choice).
Show Group 3 if Q2 == "A1" || Q3 == "A1"
Show Group 4 if Q2 == "A2"
Show Group 5 if Q2 == "A3" || Q3 == "A2"
The Group 4's display works perfectly now. (THANK YOU! ) However, Groups 3 and 5 aren't displayed at all now. At first, I thought it was the ||, so I changed it back to or again, with still no luck. Could it be that there are two equations in one?
Hi. Here is my lss file. Thank you very much for your help.
To simplify the post's explanation I used Q1, Q2 and Q3, but here are the actual question codes, so that you'll find them in the lss file.
Show Group 3 (Technical Description: Data) if RT2 == "A1" or RT3 == "A1"
Show Group 4 (Technical Description: Models) if RT2 == "A2"
Show Group 5 (Technical Description: Software) if RT2 == "A3" or RT3 == "A2"
If you don't want to use "RT2.NAOK == 'A3' ", an alternative is "RT2.shown == 'Model' " etc.... (there the .NAOK is implicit). This will also make your survey logic more obvious, but on the other hand, if your answer description changes, you'll have to change the relevance equation as well.
Cheers, Frank