- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Auto complete answers
- GisbourneCo
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago #206722
by GisbourneCo
Auto complete answers was created by GisbourneCo
Here's a scenario. I have a series of three questions regarding a maturity scale, with an array in answer to each
Q1 - select from bad - good - better
Q2 - select from bad - good - better
Q3 - select from bad - good - better
answering 'bad' in Q1 means the answer to Q2 & Q3 should also be bad. Similarly for Q2. And so, if the participant selects bad for Q1, I want to auto fill Q2 & Q3 with bad and move to the next group. And again for Q2 to autofill Q3. If however, the participant selects 'good' in Q1, they should not be allowed to select better in Q2 or Q3. i.e. the next question in a sequence, can not have a better state than the previous.
is this possible?
Many thanks
Philip
Q1 - select from bad - good - better
Q2 - select from bad - good - better
Q3 - select from bad - good - better
answering 'bad' in Q1 means the answer to Q2 & Q3 should also be bad. Similarly for Q2. And so, if the participant selects bad for Q1, I want to auto fill Q2 & Q3 with bad and move to the next group. And again for Q2 to autofill Q3. If however, the participant selects 'good' in Q1, they should not be allowed to select better in Q2 or Q3. i.e. the next question in a sequence, can not have a better state than the previous.
is this possible?
Many thanks
Philip
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 6 months ago #206725
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 Auto complete answers
Why auto-complete?
Use relevance to hide Q2 and Q3 if Q1 == bad.
Use relevance to hide Q3 if Q2 == bad.
Validation for Q2:
Validation for Q3:
Use relevance to hide Q2 and Q3 if Q1 == bad.
Use relevance to hide Q3 if Q2 == bad.
Validation for Q2:
Code:
Q2.NAOK <= Q1
Validation for Q3:
Code:
Q3.NAOK <= Q2.NAOK
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- GisbourneCo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
3 years 6 months ago #206731
by GisbourneCo
Replied by GisbourneCo on topic Auto complete answers
Thank you for the tip, but does that mean Q2 & Q3 would be unanswered in the results?
The topic has been locked.
- GisbourneCo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
3 years 6 months ago #206732
by GisbourneCo
Replied by GisbourneCo on topic Auto complete answers
Also, how does that work if 'good' is selected in answer to Q1, and only 'bad' or 'good' should be in the answer array for Q's 2 & 3?
The questions are meant to test the maturity of a process and if the respondent is achieving bad or good at Q1, they should not be able to record a better result at Q2 & Q3. I hope that makes sense?
Thanks again
The questions are meant to test the maturity of a process and if the respondent is achieving bad or good at Q1, they should not be able to record a better result at Q2 & Q3. I hope that makes sense?
Thanks again
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 6 months ago #206735
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 Auto complete answers
Correct.Thank you for the tip, but does that mean Q2 & Q3 would be unanswered in the results?
The validation equations handle that scenario.Also, how does that work if 'good' is selected in answer to Q1, and only 'bad' or 'good' should be in the answer array for Q's 2 & 3?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- GisbourneCo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
3 years 6 months ago #206736
by GisbourneCo
Replied by GisbourneCo on topic Auto complete answers
Ok, Tony, thank you. Not having the questions answered isn't necessarily a problem with careful weighting on the Q1 & 2 responses. I think I could make that work, I'll give it a go.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
3 years 6 months ago #206777
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 Auto complete answers
You could probably user an equation question after the 3 questions to check the missing two answers, something like if(Q1==1, Q2=1 AND Q3=1)...
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: 10109
- Thank you received: 3595
3 years 6 months ago #206783
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 Auto complete answers
You cannot set questions that are irrelevant. The answer will not be recorded.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 6 months ago #206802
by jelo
But for LS5 the concept of not saving irrrelvant/hidden items should be challenged.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Auto complete answers
Not sure if Holch's approach is addtional to yours.tpartner wrote: You cannot set questions that are irrelevant. The answer will not be recorded.
But for LS5 the concept of not saving irrrelvant/hidden items should be challenged.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- GisbourneCo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
3 years 6 months ago #206808
by GisbourneCo
Replied by GisbourneCo on topic Auto complete answers
Thank you all for all the advice & tips, but a couple of clarifications:
Q2 and Q3 are relevant, but each question describes a degree of maturity in a process, and if the answer to Q1 is "BAD", then Q2 & Q3 cannot score higher but should be scored. Similarly, if the answer to Q1 is GOOD, Q2 & Q3 should only be scored BAD or GOOD, with BETTER excluded. It follows that if Q1 is scored GOOD, but Q2 is scored BAD, Q3 has to be scored BAD, too.
It seems to me that the only way to achieve this is to hide Q2 & Q3, if the answer to Q1 is BAD, but weight it with a score of ZERO, with that being total score for the section. If GOOD is selected in Q1, weight that score as ONE, display Q2 where BAD is again weighted as ZERO and GOOD as ONE, and if BAD is selected, the total score for the section would be ONE.
The logic being that a group total score of ZERO indicates BAD as the answer to all Q's; GOOD, BAD, BAD would score ONE; GOOD, GOOD, BAD would score TWO; GOOD, GOOD, GOOD would score THREE, BETTER, BAD, BAD would score FOUR and so on.
The tricky part is not hiding Q2 & Q3, but altering the answer array, to hide BETTER as an option in Q2, for example, if GOOD is selected in Q1.
I hope that explains my questions, better?
Thanks again,
Philip
Q2 and Q3 are relevant, but each question describes a degree of maturity in a process, and if the answer to Q1 is "BAD", then Q2 & Q3 cannot score higher but should be scored. Similarly, if the answer to Q1 is GOOD, Q2 & Q3 should only be scored BAD or GOOD, with BETTER excluded. It follows that if Q1 is scored GOOD, but Q2 is scored BAD, Q3 has to be scored BAD, too.
It seems to me that the only way to achieve this is to hide Q2 & Q3, if the answer to Q1 is BAD, but weight it with a score of ZERO, with that being total score for the section. If GOOD is selected in Q1, weight that score as ONE, display Q2 where BAD is again weighted as ZERO and GOOD as ONE, and if BAD is selected, the total score for the section would be ONE.
The logic being that a group total score of ZERO indicates BAD as the answer to all Q's; GOOD, BAD, BAD would score ONE; GOOD, GOOD, BAD would score TWO; GOOD, GOOD, GOOD would score THREE, BETTER, BAD, BAD would score FOUR and so on.
The tricky part is not hiding Q2 & Q3, but altering the answer array, to hide BETTER as an option in Q2, for example, if GOOD is selected in Q1.
I hope that explains my questions, better?
Thanks again,
Philip
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
3 years 6 months ago #206809
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Auto complete answers
Hi,
1. Use relevance to hide Q2 and Q3 if Q1 == bad.
2. In an equation "Qset" you set the values of Q2 and Q3, like
{Q2=if(Q1==1,1,Q2)}
{Q3=if(Q1==1,1,Q3)}
with 1= code of "bad".
You can set the value afterwards by an equation.Thank you for the tip, but does that mean Q2 & Q3 would be unanswered in the results?
1. Use relevance to hide Q2 and Q3 if Q1 == bad.
2. In an equation "Qset" you set the values of Q2 and Q3, like
{Q2=if(Q1==1,1,Q2)}
{Q3=if(Q1==1,1,Q3)}
with 1= code of "bad".
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.