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
  • FaLifeTime's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #204366 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204367 by Joffm
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

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
  • FaLifeTime's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #204371 by FaLifeTime
Thanks Joffm, it works perfectly!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose