- Posts: 14
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
NOOB question about correct & wrong answers
- peehoo
- Topic Author
- Offline
- New Member
Less
More
8 years 5 months ago #126203
by peehoo
NOOB question about correct & wrong answers was created by peehoo
Hi!
Is it possible to create survey what tells after each question is participant answer right or wrong (and also tells correct answer(s). If doing this I use only single or multiple choice questions without free text...
Is it possible to create survey what tells after each question is participant answer right or wrong (and also tells correct answer(s). If doing this I use only single or multiple choice questions without free text...
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 962
- Thank you received: 216
8 years 5 months ago #126221
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic NOOB question about correct & wrong answers
Please look at the Expression manager. This will make feedback based on the answers possible with many features!
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- peehoo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
8 years 5 months ago - 8 years 5 months ago #126229
by peehoo
Replied by peehoo on topic NOOB question about correct & wrong answers
Hmm... I tried to look that... Is there any really simple examples for my needs anywhere? I mean... good place for a start...
What I found it seems quite complicated examples... I just needed example to show me to right track... if there is a question with 3 choices and 1 of them is right -> if answer is correct then after pressing next it says your answer was correct and if not it says not correct and you have to do that question again... and same if there is a multiple correct answers option...
Ok I am trying to learn this to myself but if somebody has nice example... plz let me know... I'd like to get lss-file
What I found it seems quite complicated examples... I just needed example to show me to right track... if there is a question with 3 choices and 1 of them is right -> if answer is correct then after pressing next it says your answer was correct and if not it says not correct and you have to do that question again... and same if there is a multiple correct answers option...
Ok I am trying to learn this to myself but if somebody has nice example... plz let me know... I'd like to get lss-file
Last edit: 8 years 5 months ago by peehoo.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
8 years 5 months ago #126235
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 NOOB question about correct & wrong answers
There are quite a few simple examples in the manual. I think if you really read into it, you'll start to understand.
What you need to do is check which answer they gave for the question, then you will check if this is the correct answer and depending on this show the message you want to create.
Let's say, for question with the code Q1, answer code 1 is the correct one, you would do something like this:
This is not a tested example and I am not sure if the code is 100% correct. It is just to give you an idea where to look at.
What you need to do is check which answer they gave for the question, then you will check if this is the correct answer and depending on this show the message you want to create.
Let's say, for question with the code Q1, answer code 1 is the correct one, you would do something like this:
Code:
{if(Q1==1,"Great, your answer is correct", "Unfortunately you gave the wrong answer")}
This is not a tested example and I am not sure if the code is 100% correct. It is just to give you an idea where to look at.
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.
- peehoo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
8 years 5 months ago #126319
by peehoo
Replied by peehoo on topic NOOB question about correct & wrong answers
Thank you for this... it helped me a little bit... actually answer code have to be between "" marks...
But how do I can create a loop if answer is wrong then patricipant have to answer again. And if there is a multiple answers - is these answers stored in db?
But how do I can create a loop if answer is wrong then patricipant have to answer again. And if there is a multiple answers - is these answers stored in db?
The topic has been locked.
- stevehb
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
8 years 5 months ago #126320
by stevehb
Replied by stevehb on topic NOOB question about correct & wrong answers
I'm not massively experienced with LS but I'd say you are trying to take a Survey tool and make it a Testing tool which unfortunately it isn't really designed to do
If you think about a Survey it doesn't really have wrong answers... it asks people to give their opinions and may also do some calculations based on data they give; that's not really what a test is.
As far as I'm aware you can't do loops in LS in the way you have asked, if it did then it would solve a question that I have posed earlier in this forum
Regards
Steve
If you think about a Survey it doesn't really have wrong answers... it asks people to give their opinions and may also do some calculations based on data they give; that's not really what a test is.
As far as I'm aware you can't do loops in LS in the way you have asked, if it did then it would solve a question that I have posed earlier in this forum
Regards
Steve
The topic has been locked.
- fransmarcelissen
- Offline
- Premium Member
Less
More
- Posts: 118
- Thank you received: 49
8 years 5 months ago #126328
by fransmarcelissen
Replied by fransmarcelissen on topic NOOB question about correct & wrong answers
I agree limesurvey is not perfect for this, but what you can do is add a validation for Q1 (in advanced setting->Question validation equation:
self == 1
Now the user cannot go further before 1 is answered.
self == 1
Now the user cannot go further before 1 is answered.
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
8 years 5 months ago - 8 years 5 months ago #126342
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 NOOB question about correct & wrong answers
You may have a look at
this old post
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)
Last edit: 8 years 5 months ago by Ben_V.
The topic has been locked.
- first
- Offline
- Elite Member
Less
More
- Posts: 256
- Thank you received: 37
8 years 5 months ago #126369
by first
Survey Designer and Programmer
Replied by first on topic NOOB question about correct & wrong answers
See if this post helps. "Mimic simple loops in LS"
www.limesurvey.org/en/forum/can-i-do-thi...le-loop-in-ls#126368
www.limesurvey.org/en/forum/can-i-do-thi...le-loop-in-ls#126368
Survey Designer and Programmer
The topic has been locked.
- FrankyQuest
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 0
4 years 2 months ago #192298
by FrankyQuest
Replied by FrankyQuest on topic NOOB question about correct & wrong answers
where do i have to put this code? thx
The topic has been locked.