Hide answer option / sub question via EM?

  • holch
  • holch's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #99299 by holch
holch created the topic: Hide answer option / sub question via EM?
I am trying the potential of Expression Manager for the first time, and I must say I am really impressed. Tailoring is really easy now. But as I am still at the beginning, I am often running into obstacles, which I am trying to overcome via Forum posts and the wiki.

However, now I ran into an issue, which I couldn't fina a solution for:

Depending on a previous question about the current brand I want to hide answer options in the following question, which has car models in it. I tried it via this code in the answer option field, but of course it doesn't hide the option and the radio button. As else is required, I added a stupid text "do not choose".
{if(A3==1,'Citro├źn Berlingo','do not choose')}
Is there any way to hide the models that in this case are not from "Citroen" in this question?

I could of course create a question for each brand and then hide/show them with EM or conditions, but the questionnaire structure currently is to have them all in one question and just hide the ones that are not from the chosen brand. If I use the solution with various questions, I need to work on the database later on to bring the answers back into one column, which I'd like to avoid.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 9 months ago - 3 years 9 months ago #99308 by first
first replied the topic: Hide answer option / sub question via EM?
I have a quick solution if you are comfortable in displaying both questions on separate screens.

Survey Designer and Programmer
Last Edit: 3 years 9 months ago by first.

Please Log in to join the conversation.

  • holch
  • holch's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #99337 by holch
holch replied the topic: Hide answer option / sub question via EM?
Here the questions can (and most probably will be anyway) shown on different screens.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 9 months ago #99362 by first
first replied the topic: Hide answer option / sub question via EM?
I always use group by group display layout because it provide me more flexibility. I have implement what you need in a dummy survey attached. I think you can easily figure out how we can do it by looking at the survey. If you still have any confusion please let me know.

Survey Designer and Programmer
Attachments:

Please Log in to join the conversation.

  • holch
  • holch's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #99388 by holch
holch replied the topic: Hide answer option / sub question via EM?
Thanks trivender, I'll have a look at your solution and see if it works for me.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now