- Posts: 11
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Get answer options from previous (unique) survey responses for the same question
- iceclimber81
- Topic Author
- Offline
- New Member
Less
More
3 years 5 months ago #207067
by iceclimber81
Get answer options from previous (unique) survey responses for the same question was created by iceclimber81
Hi there,
In addition to a pre-defined set of answer options for multiple choice or single choice drop-down questions, I would like to add answer options based on previous, unique "other" responses for the same question (no matter which respondent submitted the data).
Use case: Let's say you are surveying a large area for types of bacteria found. The 10 most common types are already pre-defined as answer options, and you can enter "other". As more and more survey responses come in, the person entering the data can select from response options that are based on the (ever growing and -ideally- alphabetically ordered) number of unique values previously submitted for a particular question, or add their own “other“ response which becomes part of the growing list of unique values when the form is loaded next time.
This would be a questionnaire that grows smarter over time, and I could avoid having to re-code many different spellings of the same "other" option on the back-end because respondents can see what previous responses contained for "other".
Is there any way I can do this with Limesurvey?
In addition to a pre-defined set of answer options for multiple choice or single choice drop-down questions, I would like to add answer options based on previous, unique "other" responses for the same question (no matter which respondent submitted the data).
Use case: Let's say you are surveying a large area for types of bacteria found. The 10 most common types are already pre-defined as answer options, and you can enter "other". As more and more survey responses come in, the person entering the data can select from response options that are based on the (ever growing and -ideally- alphabetically ordered) number of unique values previously submitted for a particular question, or add their own “other“ response which becomes part of the growing list of unique values when the form is loaded next time.
This would be a questionnaire that grows smarter over time, and I could avoid having to re-code many different spellings of the same "other" option on the back-end because respondents can see what previous responses contained for "other".
Is there any way I can do this with Limesurvey?
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
3 years 5 months ago #207099
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Get answer options from previous (unique) survey responses for the same question
Limesurvey does not offer this out of the box. You might be able to create a workaround with Ajax though.
Instead you will have "precoded" wrong spellings. And don't think you will solve your problem of not having to recode. Given my experience with item batteries and other options: Usually you find answers in the other section that should have been chosen from the item battery, because it is already there...
This would be a questionnaire that grows smarter over time, and I could avoid having to re-code many different spellings of the same "other" option on the back-end because respondents can see what previous responses contained for "other".
Instead you will have "precoded" wrong spellings. And don't think you will solve your problem of not having to recode. Given my experience with item batteries and other options: Usually you find answers in the other section that should have been chosen from the item battery, because it is already there...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- iceclimber81
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 3
3 years 5 months ago #207154
by iceclimber81
Replied by iceclimber81 on topic Get answer options from previous (unique) survey responses for the same question
Thanks for the reply, @holch, I appreciate the thoughts on the pros and cons of doing this. I have a concrete use case and think having the option to do this would add value, so I'd be quite interested in the practical implementation if anyone else has any thoughts?
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
3 years 5 months ago #207167
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Get answer options from previous (unique) survey responses for the same question
I have no practical experience with ajax calls, so I won't be able to help there.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
3 years 5 months ago #207171
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Get answer options from previous (unique) survey responses for the same question
You cannot use an AJAX call to add answers within a survey. Answers and sub-questions must be added in the back end and sub-questions can only be added to an inactive survey.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: iceclimber81
The topic has been locked.