Welcome to the LimeSurvey Community Forum

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

Exclude radio buttons based on previous Q response

  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
8 years 6 months ago #126484 by Winocll_48635
So i've got Q5a asking "What is your first choice" with a radio button response list. Then Q5b is supposed to be "What is your second choice" with the same radio button response list EXCEPT it should exclude the response given from Q5a.

Any ideas?
The topic has been locked.
More
8 years 6 months ago #126485 by Ben_V
Hi,
the simplest way is to use multiple choice questions instead radio button questions (set questions mandatory with 1 answer max.)
After use the array exclusion filter to do the job

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
8 years 6 months ago #126489 by Winocll_48635
Replied by Winocll_48635 on topic Exclude radio buttons based on previous Q response
Thank you so much...that was a huge help.

Now the trick is that i have two responses that should be allowed in both questions regardless of whether they were answered in the first or not - "Not sure" and "Other"

What i've done is create two responses for each (the 'other' and 'not sure'), creating the 'other' with an <html><textarea col="1"></textarea></html> for the response list coding.

This way if the respondent says one of the 'others' in the first question they will still have the ability of choosing the other 'other' in the second question.

If you know of a better way i am all ears.

Again, thanks so much...very helpful.


--Larry
The topic has been locked.
More
8 years 6 months ago #126490 by Ben_V
1) Do you mean the built-in " Option 'Other' " attribute ?
2) If your 'other' and 'not sure' answer options are not sharing same answer codes in Q5a & Q5b the exclusion won't apply for those options

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
8 years 6 months ago #126609 by Winocll_48635
Replied by Winocll_48635 on topic Exclude radio buttons based on previous Q response
It's working great now...except for one thing.

i created a custom "other" field in both the first and second question so that i could make them each a different code...therefore giving me the ability to include an "other" response in the second question even if it was given for the first question.

Problem is that the text is not being captured.

Is there a way to use the standard 'include other' response in the question while giving different code values for each question? That might be the easiest way.
The topic has been locked.
More
8 years 6 months ago #126617 by first
If group by group display then you can show an open end on the same page as soon as other option gets selected otherwise we can show it on next page.

Check attached lss

File Attachment:

File Name: limesurvey...3548.lss
File Size:17 KB

Survey Designer and Programmer
The topic has been locked.
  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
8 years 6 months ago #126673 by Winocll_48635
Replied by Winocll_48635 on topic Exclude radio buttons based on previous Q response
Thanks...i was thinking of a follow-up text question to capture the 'other'...i'll do that :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose