- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
correct answer
- michael1834
- Topic Author
- Offline
- New Member
Less
More
4 years 4 months ago - 4 years 4 months ago #191988
by michael1834
correct answer was created by michael1834
Hi, can I set it so that the participant must mark the correct answer, otherwise he will not move to the next question?
e.g. The grade value must be 1 to go to the next question
e.g. The grade value must be 1 to go to the next question
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
4 years 4 months ago #191995
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 correct answer
Please refer to the manual - question validation equation -
manual.limesurvey.org/Question_type_-_Li...28em_validation_q.29
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- michael1834
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
4 years 4 months ago - 4 years 4 months ago #192011
by michael1834
Replied by michael1834 on topic correct answer
Ok, if I have List(radio),
code/value
AD1 / 1
AD2 / 0
AD3 / 0
and correct answer is code: AD1, value==1
How do I have to write logic?
xxxxxx- what should i consider there?
or otherwise?
Question validation equation:
((xxxxxx)==0)
Question validation tin(en):
{if(((xxxxxx)==0,",'Incorrect'}
Please help me! I will be grateful!
code/value
AD1 / 1
AD2 / 0
AD3 / 0
and correct answer is code: AD1, value==1
How do I have to write logic?
xxxxxx- what should i consider there?
or otherwise?
Question validation equation:
((xxxxxx)==0)
Question validation tin(en):
{if(((xxxxxx)==0,",'Incorrect'}
Please help me! I will be grateful!
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3964
4 years 4 months ago #192019
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic correct answer
And what is the code of the question?
Let's assume "Q1".
So if the correct answer is AD1, your question validation is: "Q1==AD1",
and in the tip you might set an if-statement to show the FALSE state.
Like
{if(Q1==AD1,"","Your answer is not correct")}
Joffm
Let's assume "Q1".
So if the correct answer is AD1, your question validation is: "Q1==AD1",
and in the tip you might set an if-statement to show the FALSE state.
Like
{if(Q1==AD1,"","Your answer is not correct")}
Ok, send me a beer.I will be grateful!
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- michael1834
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
4 years 4 months ago - 4 years 4 months ago #192021
by michael1834
Replied by michael1834 on topic correct answer
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3964
4 years 4 months ago #192022
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic correct answer
1. "A4" is a text, so it has to be surrounded by quotes.
And, sorry, I was a bit short, that I did not use quotes in Q1=="AD1"
Because I just wanted to show the structure.
Joffm
And, sorry, I was a bit short, that I did not use quotes in Q1=="AD1"
Because I just wanted to show the structure.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.