- Posts: 23
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show/hide group depending on previuos radio list answer
- FaLifeTime
- Topic Author
- Offline
- Junior Member
Less
More
3 years 8 months ago #204366
by FaLifeTime
Show/hide group depending on previuos radio list answer was created by FaLifeTime
Hi mates,
I have a radio list question (p101) with two possible answers (coded A1 and A2). I want to show group B (id 96) only if A2 is selected, and group B (id 92) only if A2 is selected.
I’ve followed this thread but without success. I use a relevance equation in Group properties as this p101_A2 == 'Y' and it says Undefined variable. As if the p101 question doesn’t exist. Am I doing something wrong?
My Limesurvey version is 3.17.9
As always, thanks in advanced
4aLifeTime
I have a radio list question (p101) with two possible answers (coded A1 and A2). I want to show group B (id 96) only if A2 is selected, and group B (id 92) only if A2 is selected.
I’ve followed this thread but without success. I use a relevance equation in Group properties as this p101_A2 == 'Y' and it says Undefined variable. As if the p101 question doesn’t exist. Am I doing something wrong?
My Limesurvey version is 3.17.9
As always, thanks in advanced
4aLifeTime
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
3 years 8 months ago #204367
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Show/hide group depending on previuos radio list answer
Hi,
to find out how to access variables, I always recommend to activate the survey, enter some data and have a look at the answer table.
And as your mentioned thread is about questions of type "multiple" this used syntax is wrong.
You use a question of type list(radio) that is single.
So your relevance equations are just
p101=="A1" resp. p101=="A2"
See here
manual.limesurvey.org/ExpressionScript_-...code_variable_naming
Joffm
to find out how to access variables, I always recommend to activate the survey, enter some data and have a look at the answer table.
And as your mentioned thread is about questions of type "multiple" this used syntax is wrong.
You use a question of type list(radio) that is single.
So your relevance equations are just
p101=="A1" resp. p101=="A2"
See here
manual.limesurvey.org/ExpressionScript_-...code_variable_naming
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: FaLifeTime
The topic has been locked.
- FaLifeTime
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 0
3 years 8 months ago #204371
by FaLifeTime
Replied by FaLifeTime on topic Show/hide group depending on previuos radio list answer
Thanks Joffm, it works perfectly!
The topic has been locked.