Validation of answers during the survey

More
2 weeks 3 days ago #175905 by kvandenouweland
kvandenouweland created the topic: Validation of answers during the survey
Dear all,

OS: Ubuntu 16.04
Version: 2.73

I have a survey which has about 17 questions, all based on radio buttons of which I define the answers. The answers have a conditional value of 1 or 0 depending if they are correct or faulty. (1 = correct, 0 = faulty)


During this survey, 5 questions are at randomly picked from the 17 stated hence people have to get a score of 5 in order to pass.


Is it possible, that during the question itself, when a users selects the wrong radio button a message is indicated that they should 'try again'.


Normally I would show all questions and answers at the end of the assessement but since these are 5 random questions, I can't do that.

Thanks
Kristof

Please Log in or Create an account to join the conversation.

More
2 weeks 3 days ago #175910 by DenisChenu
DenisChenu replied the topic: Validation of answers during the survey

kvandenouweland wrote: During this survey, 5 questions are at randomly picked from the 17 stated hence people have to get a score of 5 in order to pass.

You can shown only user have seen with Qcode.relevanceStatus

Something like this
{if(Qcode.relevanceStatus,"At question : "+Qcode.question+", you answer "+Qcode.shown)}{if(Qcode.relevanceStatus and Qcode.NAOK == 1,", great job.",", you're false, the answer is «the good answer».")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #176150 by kvandenouweland
kvandenouweland replied the topic: Validation of answers during the survey
Thanks Denis,

I assume you mean that this is at the end during the assessement and not during the survey itself?

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #176154 by DenisChenu
DenisChenu replied the topic: Validation of answers during the survey

kvandenouweland wrote: Thanks Denis,

I assume you mean that this is at the end during the assessement and not during the survey itself?

No, it can be done during surveyb (except if current version have issue (not reported) with this)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #176157 by kvandenouweland
kvandenouweland replied the topic: Validation of answers during the survey
Thanks,

May I ask perhaps a bit more help. I understand that this has to be put in the Relevance equation but I'm trying to figure out the logic behind it.

Qcode question --> ok that is the question
Qcode.shown --> ok that is the answer given
Qcode.NAOK --> if not applicable is ok
Qcode.relevanceStatus --> 1 if the quest is picked at random by the survey.

So assuming the status above what your if statement does:
First if
1) If this question is chosen show the question itself and the answer given by the person
Second if
2) If the question is chosen, and ... (here I'm lost)

So I don't fully understand what the NAOK has as effect on the question.

But base set: I have to figure out a relevance equation that checks if the correct value is chosen?

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #176160 by kvandenouweland
kvandenouweland replied the topic: Validation of answers during the survey
Perhaps pointing it to another direction: This topic has the thing I want to achieve however ,I'm not sure how they did it.
If I select radio buttons in a list, I don't have the validation option available.

www.limesurvey.org/forum/can-i-do-this-w...ptable-answer-option

Please Log in or Create an account to join the conversation.

More
1 week 5 days ago #176162 by kvandenouweland
kvandenouweland replied the topic: Validation of answers during the survey
Denis: by playing a bit around, the method mentioned in the other topic is suitable for me. It is not really really validation but the most important thing is that the survey taker is informed that his/her answer is mistaken.

So for the time begin, this is a solution for me

How to for other people:

- In the question field add the text:
{if(!is_empty(Qcode) AND Qcode!="ANSWER","Please reconsider your answer","")}

ANSWER has to be changed to the valid answer - if you have doubt which this is, you can set {Qcode} on its own which will show during selection in a list.

Big thanks Denis for point me in the right direction.
Kristof

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!