Welcome to the LimeSurvey Community Forum

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

Exclude choice from Dropdown list

  • sloaner
  • sloaner's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #139056 by sloaner
Exclude choice from Dropdown list was created by sloaner
I have searched and tried everything that I googled to no avail... I have two question groups about Teachers, both have a ddl where the students can select a teacher. I want to exclude the selected teacher of the first ddl from displaying in the second ddl.

I would also consider doing some sort of validation that wouldn't allow the same teacher to be selected in both ddl.

TIA
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #139058 by tpartner
Replied by tpartner on topic Exclude choice from Dropdown list
There is no filtering, answer relevance or question validation for list (dropdown) questions, so the simplest solution would be to use multiple-choice questions with "Maximum answers" set to 1. Then you can use filtering and/or relevance and/or validation.

If that's not acceptable, you will need to use custom JavaScript to filter Q2 - the details of that script would depend on your survey set-up.

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