Drag and Drop - Incorrect Scoring


I've created a 6 item drag and drop and have set it for individual marks/scoring.

When I test it out with all of the answers correct then the score of 6 out of 6 is shown. However, when I try it with 4 of the answers correct and 2 answers wrong the score is shown as 2 out of 6, rather than 4 out of 6.

I've checked over the settings and everything seems OK.

I'm not sure why this is happening. It may be somethinhg that I am doing or possibly a bug.

Any help would be appreciated.

I've attached the .h5p file.




otacke's picture

I'd have to look at the code to be sure, but I guess that you get -1 point for each answer that was sorted wrong. Could that be possible?

papi Jo's picture

Yes, that's how the Drag & drop scoring system works: you get points taken off for wrongly dropped items. It might be an interesting new feature to have an option to knock off those points or not. I'll have a look.

EDIT.- Got it! in script dragquestion.js line 768, replace this.points with this.rawPoints.

otacke's picture

Will you implement this feature in "Drag Question"? I think the behavioral settings would be a good place for configuration options regarding scores. You would probably have to make sure to tackle all code fragments that would have to decide between this.points and this.rawPoints (xAPI coverage maybe?), but it should be pretty straightforward.

papi Jo's picture

Will pull a request any time soon.

vev1's picture

Yes, can this please be fixed? When the option says this:

 "Disable to give one point for each draggable that is placed correctly." Then one would assume if you get 1 right out of 6 your score would be 1 out of 6.Thanks. 
tomaj's picture

There is a fix from Papi Jo in the pipeline, and you can follow it's conclution on the ticket.

- Tom

vev1's picture

Super. Thank you!

papi Jo's picture

@vev1 you can see this (forthcoming) feature in action on my garden site here: http://www.rezeau.org/wp-garden/en/category/about/quizzes/

Click on Label the plants in the North Border and Plant families.


I'm using your new updated version on Wordpress.

I haven't been able to get the default or your version of the ticks and crosses to show the right and wrong answers. There is no feedback.

What do I need to do?



BV52's picture

Hi Zoe,

Please check my answer here.


papi Jo's picture

This is an old thread (3 years old). If you are using the 'papi Jo' version of Drag & Drop on my Wordpress site, then it's out of date.

Updated versions are now on my Drupa Test site at http://www.rezeau.org/drupal/

If you need further help, you can e-mail it at the e-mail address on the front page of that site.



I am using the updated version from your Drupal site for my wordpress site.

I'm just having problems with the tick and crosses showing up to show the correct and wrong answers.