Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Hide answer option / sub question via EM?

Hide answer option / sub question via EM? 11 Monate 6 Tage her #99299

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2568
  • Dank erhalten: 291
  • Karma: 106
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Hide answer option / sub question via EM? 11 Monate 5 Tage her #99308

  • trivender
  • trivenders Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 139
  • Dank erhalten: 5
  • Karma: 5
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."
Letzte Änderung: 11 Monate 5 Tage her von trivender.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Hide answer option / sub question via EM? 11 Monate 4 Tage her #99337

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2568
  • Dank erhalten: 291
  • Karma: 106
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Hide answer option / sub question via EM? 11 Monate 4 Tage her #99362

  • trivender
  • trivenders Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 139
  • Dank erhalten: 5
  • Karma: 5
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.
Anhang:
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."
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Hide answer option / sub question via EM? 11 Monate 3 Tage her #99388

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2568
  • Dank erhalten: 291
  • Karma: 106
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.266 Sekunden
Donation Image