Welcome, Guest
Username: Password: Remember me

TOPIC: Hide answer option / sub question via EM?

Hide answer option / sub question via EM? 1 year 1 month ago #99299

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2851
  • Thank you received: 358
  • Karma: 124
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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Hide answer option / sub question via EM? 1 year 1 month ago #99308

  • trivender
  • trivender's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 146
  • Thank you received: 7
  • Karma: 7
I have a quick solution if you are comfortable in displaying both questions on separate screens.
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
Last Edit: 1 year 1 month ago by trivender.
The administrator has disabled public write access.

Hide answer option / sub question via EM? 1 year 1 month ago #99337

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2851
  • Thank you received: 358
  • Karma: 124
Here the questions can (and most probably will be anyway) shown on different screens.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Hide answer option / sub question via EM? 1 year 1 month ago #99362

  • trivender
  • trivender's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 146
  • Thank you received: 7
  • Karma: 7
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.
Attachments:
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

Hide answer option / sub question via EM? 1 year 1 month ago #99388

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2851
  • Thank you received: 358
  • Karma: 124
Thanks trivender, I'll have a look at your solution and see if it works for me.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.152 seconds
Donation Image