Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

correct answer

  • michael1834
  • michael1834's Avatar Topic Author
  • Offline
  • New Member
  • New Member
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
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #191995 by tpartner
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
  • michael1834's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
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!
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192019 by Joffm
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")}

I will be grateful!

Ok, send me a beer.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • michael1834
  • michael1834's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago - 4 years 4 months ago #192021 by michael1834
Replied by michael1834 on topic correct answer
I still have an error, undefined variable in the red square

probably I am describing something wrong



in code should i use id?

ok, I would send beer from Poland, but we have slops here
Last edit: 4 years 4 months ago by michael1834.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192022 by Joffm
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

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.

Lime-years ahead

Online-surveys for every purse and purpose