- Posts: 74
- Thank you received: 1
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
- Topic Author
- Offline
- Banned
Less
More
8 years 6 months ago #126484
by Winocll_48635
Exclude radio buttons based on previous Q response was created 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?
Any ideas?
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
8 years 6 months ago #126485
by Ben_V
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)
Replied by Ben_V on topic Exclude radio buttons based on previous Q response
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
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
- Topic Author
- Offline
- Banned
Less
More
- Posts: 74
- Thank you received: 1
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
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
8 years 6 months ago #126490
by Ben_V
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)
Replied by Ben_V on topic Exclude radio buttons based on previous Q response
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
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
- Topic Author
- Offline
- Banned
Less
More
- Posts: 74
- Thank you received: 1
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.
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.
- first
- Offline
- Elite Member
Less
More
- Posts: 227
- Thank you received: 36
8 years 6 months ago #126617
by first
Survey Designer and Programmer
Replied by first on topic Exclude radio buttons based on previous Q response
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
Check attached lss
Survey Designer and Programmer
Attachments:
The topic has been locked.
- Winocll_48635
- Topic Author
- Offline
- Banned
Less
More
- Posts: 74
- Thank you received: 1
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.