Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Filter List (dropdown) options based on previous answer

  • litfincq
  • litfincq's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129608 by litfincq
Hi All,

New to Limesurvey.

I am making a survey that asks questions about specific university courses ("course review"). I want to have two questions to allow the respondent to select the course that they want to review by department and code. The first question would have a dropdown with the available department codes and a second question would have a dropdown of courses based on the selected department.

For example, the first question has a dropdown with the following options:
A Art
B Business
C Computer Science

The second dropdown has the following options in all:
A101 Renaissance Painting
A102 Digital Photography
A201 Sculpture
B101 Entrepreneurship
B201 Creative Accounting
C101 Introduction to Javascript
C201 Advanced Program Logic
C202 User Interfaces

If I select "C Computer Science" for the first question, I should have the following answers available for the second question:
C101 Introduction to Javascript
C201 Advanced Program Logic
C202 User Interfaces

I think that we are using Limesurvey 2.something (our Sysadmin is on holiday until 4 January).

Any help would be much appreciated.

Yours,

Chris Litfin
McMaster University
Hamilton, Ontario, Canada
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #129615 by tpartner
If Q1 is a single-choice, why not simply have several Q2s, shown conditionally on the Q1 answer?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • litfincq
  • litfincq's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129621 by litfincq
Hi Tony,

Thanks for your suggestion. I had thought of doing that, but I have about 1200 courses spread over 125 departments. I would rather not have to manually set up a question for each department.

Unless there is a way to batch-create or batch-upload questions based on a set of possible values (say, in a .csv)?

Yours,
Chris Litfin
McMaster University
Hamilton, Ontario, Canada
The topic has been locked.
  • litfincq
  • litfincq's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129622 by litfincq
Sorry, found this manual.limesurvey.org/Excel_Survey_Structure
about 30 second after I posted. That, I can handle.

But once I get my 125 questions made, how do I get one definitive "answer" that I can refer to in subsequent questions? Some sort of hidden question that looks at which of the preceding questions has a non-blank answer?

CL
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #129631 by tpartner
I'm not sure what you mean by one definitive "answer" but it seems to me that you have around 10 courses per department so I think normal Conditions or Expression Manager relevance should work fine.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 9 months ago #136572 by BFG01
I'm trying to do something similar; I'm trying to set up a survey where you have a dropdown list of departments and then a dropdown list of teams, so:

Q5 What Department:
Code A - Answer A
Code B - Answer B
Code C - Answer C

Q6 What Team:
A1 - A1
A2 - A2
B1 - B1
B2 - B2
Etc

Then ideally if people haven't selected a department then the full list should be visible as one question, then the answers get masked depending on what you select. Is there a solution that's neater than just having dozens of different variations of Q6?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #136661 by tpartner
There is an old workaround here that will require some modification.

I think Denis also has a solution for filtering counties or cities that should work but I can't find it at the moment.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose