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...
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
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:
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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?
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
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.