
Hi all,
I´ve created a quiz which contains the following ranking task:
a456: Please arrange the specified countries according to their size so that the biggest country is at the top.
A1 Germany
A2 Bosnia and Herzegowina
A3 France
A4 Iceland
A5 Poland
Let´s suggest that A5,A3,A1, A4, A2 is the (only) correct order. After the participant completed the ranking, I´d like to let him know if his answer was correct or wrong.
I found a solution for this in the limesurvey forum - but unfortunately just for multiple choice questions.
if(A1_SQ001.NAOK == "Y" and A1_SQ002.NAOK == "" and A1_SQ003.NAOK == "" and A1_SQ004.NAOK == "Y"), ("You chose this answer correctly.", "You chose this answer incorrectly")
Since I´ve never worked with java script or coding, I don´t know how to adjust this code for my ranking task.
In contrast to the multiple choice question, all answers will be selected in the ranking task but the correct order is important.
It would be incredibly helpful if you could show me the correct code / javascript.
Finally I have a very simple question. I´m not completely sure about where to insert the code. When I finally have found the correct code for the ranking task - is it correct that I create a question Type "text display" and insert the code to it´s question field like on the picture attached below?
Thanks a lot for your support!
Kind regards
Maria