Welcome to the LimeSurvey Community Forum

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

Dropdown answer disabled

  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #204767 by tpervaiz
Dropdown answer disabled was created by tpervaiz
Is it possible to disable the dropdown or radio list answer if that answer was selected in previous response.

Lets suppose a newly created survey has radio list Question as below

Question: Please select your time slot

A1 = 08:00 to 10:00
A2 = 10:00 to 12:00
A3 = 12:00 to 14:00

So in first response a user has selected A1 as per his availability then in next response A1 answer should not be visible to disabled
The topic has been locked.
More
3 years 7 months ago #204768 by jelo
Replied by jelo on topic Dropdown answer disabled
LimeSurvey is not offering answerrelevance fields, only subquestion relevance fields (which is multiplechoice). For your single choice drop down you will need to apply a workaround. If you only have a few items, you might create a question for every situation. If you have many items, there might be a solution via Javascript.
You should state what exact version of LimeSurvey you use. That is important to provide working workarounds.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #204769 by tpervaiz
Replied by tpervaiz on topic Dropdown answer disabled
Version 3.14.8+180829

Many thanks in advance
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #204770 by Joffm
Replied by Joffm on topic Dropdown answer disabled
Hi,
what are you talking about?
Your topic is "dropdown", in your text you say

survey has radio list Question


For list(radio) you may use the workaround by inserting a (hidden) question of type multiple (M1), checking the respective subquestion by an (hidden) equation.
This question you use as array exclusion filter for your second list(radio).

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #204771 by tpartner
Replied by tpartner on topic Dropdown answer disabled
If questions are on separate pages, you can use a hidden multiple-choice question to filter the second list-radio.

Search the forum - Joffm has given many examples of this.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago - 3 years 7 months ago #204772 by tpervaiz
Replied by tpervaiz on topic Dropdown answer disabled
Joffm... In my first thread i asked that if it is possible in dropdown or radio so I am ok with both as long as it is doable...
Last edit: 3 years 7 months ago by tpervaiz.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #204773 by tpervaiz
Replied by tpervaiz on topic Dropdown answer disabled
Can you please help me in more details as i dont know how to do above
The topic has been locked.
More
3 years 7 months ago #204777 by jelo
Replied by jelo on topic Dropdown answer disabled
The idea is to use a hidden multiplechoice question as filter for your second singlechoice question.

To define a question as a filter, take a look at
manual.limesurvey.org/Question_type_-_Li...r_.28array_filter.29

Perhaps you can find access to the idea via this thread:
forums.limesurvey.org/forum/can-i-do-thi...choice-radio-answers

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago #204780 by Joffm
Replied by Joffm on topic Dropdown answer disabled
Hi,
once again.

File Attachment:

File Name: limesurvey... (1).lss
File Size:29 KB






And remember, as Tony mentioned already: Both question on different pages.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #204781 by tpervaiz
Replied by tpervaiz on topic Dropdown answer disabled
Joffm thanks for detailed reply but i just want to know if filter works with different responses such as my example above was with different responses
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 7 months ago - 3 years 7 months ago #204783 by Joffm
Replied by Joffm on topic Dropdown answer disabled
Yes,
Adapt the multiple question and the equation.

You will find everything to do that in the second link of jelo's reply.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 7 months ago by Joffm.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 7 months ago #204784 by tpervaiz
Replied by tpervaiz on topic Dropdown answer disabled
Can you help me how can I do to filter by responses as I am still trying to figure this out
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose