Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to set +1 as correct score for one of the options in a multichoice question and -0.33 as negative score for all other options. I tried putting -0.33 in "Score if chosen" under "advanced options" but its not getting saved in database.
Comments
Comment #2
djdevinHi,
You can't have decimal points, instead you should raise all your point values up to integers.
Comment #3
samratmalik CreditAttribution: samratmalik commentedI was going through this negative scoring issue of quiz 6.x version at https://www.drupal.org/node/731136#comment-2866540 and it says negative scoring is possible. Can we replicate same in 7.x version?
Comment #4
djdevinThis isn't the same issue - you can do negative scoring, just not decimal point scoring. An integer can be negative.
Comment #5
samratmalik CreditAttribution: samratmalik commentedIf I change database table to float as mentioned in https://www.drupal.org/node/731136#comment-3129936 will it allow decimal negative values ? And which table do I need to modify?
Comment #6
djdevinI don't recommend changing any database tables as you may not be able to upgrade Quiz later.
Quiz isn't designed to handle partial points, you should instead be using full point values.
So instead of each multichoice question being worth 1 point, they should be worth 4 points.
You should have 3/4 points instead of 0.25/1.00.
Comment #7
djdevin