- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Validation of answers during the survey
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
More
5 years 5 months ago #175905
by kvandenouweland
Validation of answers during the survey was created by kvandenouweland
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
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
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 5 months ago #175910
by DenisChenu
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 , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Validation of answers during the survey
You can shown only user have seen with Qcode.relevanceStatuskvandenouweland 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.
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
5 years 5 months ago #176150
by kvandenouweland
Replied by kvandenouweland on 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?
I assume you mean that this is at the end during the assessement and not during the survey itself?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
5 years 5 months ago #176154
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Validation of answers during the survey
No, it can be done during surveyb (except if current version have issue (not reported) with this)kvandenouweland wrote: Thanks Denis,
I assume you mean that this is at the end during the assessement and not during the survey itself?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
5 years 5 months ago #176157
by kvandenouweland
Replied by kvandenouweland on 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?
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?
The topic has been locked.
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
5 years 5 months ago #176160
by kvandenouweland
Replied by kvandenouweland on 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
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
The topic has been locked.
- kvandenouweland
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
5 years 5 months ago #176162
by kvandenouweland
Replied by kvandenouweland on 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
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
The topic has been locked.