100 43
Contact Author Sign in to rate

Multiple Choice for Anki

0.05MB. Updated 2022-12-17.
The author has shared 3 other item(s).

Description

Adds multiple choice cards to Anki. SCREENSHOTS COMPATIBILITY Anki 2.1.44 or higher is required for this add-on to work. Cards created with this add-on can be reviewed with all Computer and mobile apps and on AnkiWeb. USAGE Creating / Editing The note type is automatically added the first time you start Anki after installing the add-on. When creating cards, write a "1" for correct choices or a "0" for incorrect choices in the "Answers" field. The question type can be selected with the field "QType". It can be either 0 (Kprim), 1 (Multiple Choice) or 2 (Single Choice). The Screenshots section shows how the question types look. These values in the "Answer" field must be separated by a single space. The order and number of values in the "Answer" field must correspond with the choices "Q_1" to "Q_5". If you don't need all the choices, just leave the remaining "Q_" fields blank and only enter as many values as you need in the "Answers" field. Reviewing Select the correct and incorrect choices accordingly and click "Show Answer". The add-on will automatically style your choices based on whether you answered correctly or not. Addon Config If you want to change the way your answers are styled (e.g. color green what you should have chosen instead of what you have chosen correctly) you can use the addon's config to switch between different styles: (Tools -> Addons -> "Select the multiple choice addon" -> Config) Known Issues LICENSE AND CREDITS Multiple Choice for Anki is Copyright © 2022 zjosua It is licensed under the AGPLv3. For more information refer to the LICENSE file. A bunch of code in this add-on is based on the Anki add-ons Image Occlusion Enhanced and Cloze Overlapper by Glutanimate. Click here to support Glutanimate's work. Persistence is achieved using the code from Simon Lammer's anki-persistence. Great work Simon! Hax merged my Multiple Choice card template with Simon Lammer's persistence code. He also reworked my card templates into one single all-in-one template. Thanks a lot! Simon's and Hax's work made the multiple choice cards compatible with all platforms. Volker Umpfenbach contributed a change that allows to customize how the questions and answers are colorized. He also provided the code to calculate and display the percentage of correctly answered items per question. Shoutout to 3ter for his contributions that improve card initialization and checkbox handling. This add-on uses the packaging library. SUPPORT Please use the issue tracker on GitHub if you run into any issues.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1566095810

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools->Add-ons menu item, then click on Get Add-ons and paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1684784797
Is there a way to always put the same number in qtype as default?
on 1682753483
I had to tweak the code for the card because it won't show the answer in green if I choose the correct answer. Now it works just like how imagined it.
on 1682351952
Works!
on 1680681208
Funciona!
on 1680211414
Doesn't work at all.
on 1678882563
very good
on 1678832758
A bit clumsy but works very well
on 1678815337
Excelente Add-ons o Multiple Choice for Anki. Parabens ao Desenvolvedor!!!
on 1676971458
Exactly what I needed! It's easy to configure and to enter data. I love the flexibility of being able to quickly switch from MC to SC.
Also displays great on the App.

For all those complaining about incorrect coloring: In the default setting, green means "answered correctly", not "should've been ticked". You can also change it by using "ALTERNATE_COLORING" in the config.
on 1676750023
At first I didn't understand the color coding and was really discouraged. However, you just have to get this sentence right:
"If a row was ticked or left unticked correctly it is shown green and otherwise red"

This is unusual because normally the rows that you have correctly left uncrossed are not also shown in green. :))
on 1674923286
Inconsistent. Seemingly broken. Displays the answers wrong in single choice.
on 1671908888
This add-on is amazing and exactly what I was looking for in an Anki add-on to practice for my upcoming multiple choice exam

Don't listen to the negative comments, your instructions were very clear and easy to follow and I'm so thankful to you for making this
on 1670353504
Whenever I was studying for my physics exam using flashcards using this add-on, the colors would display incorrectly whenever I answered a question wrong. This problem was not evident when I used this add-on previously for another exam.
on 1667652586
does not work according to exemplar. I'm using windows 10, most recent update of anki as of today
on 1667203083
Superb!
on 1665458374
Not configurable
on 1665055191
wrong answers
on 1664959753
great idea to make mcq on anki
on 1662762689
EXCELENTE!
on 1661475860
It didn't work on AnkiDroid.

My AnkiDroid gets crazy with this Add-on.
on 1660984715
Another better Multiple Choices: https://ankiweb.net/shared/info/1497603664
on 1660942963
Color coding is incorrect.
on 1659544584
Mistake with the no answers
on 1659506057
good
on 1658324946
Another Multiple Choice addon with automating create choices and shuffle choices. Visit: https://ankiweb.net/shared/info/1497603664 for more information
on 1658007456
only supports 5 choices, not configurable
on 1656920803
Many thanks! Really useful.
on 1656600284
Thank you.
on 1654250529
thank you so much!! <3
on 1654045408
I'm really enjoying this plugin! Thank you so much for your dedicated work to the community!
on 1653650944
Amazing, just what I needed!
on 1653649862
"Error downloading 1566095810: Invalid code, or add-on not available for your version of Anki."

I have version 2.1.5, but it doesn't work.
on 1653234709
Is there a way to change the name of the "extra 1" field to "justification" in the back template?
on 1652550396
Works fine on PC
on 1652166443
Awesome
on 1651202507
I LOVE this add-on - it's great for practice questions in prep for pharm or classes where I make my own questions to test myself. The only thing is that I'd really like to have the ability to put more than 5 answer choices. 5 is often enough, but even some of the practice questions professors give us have several more, or I'll want to make a tricky question (like A, B, C, A & B, A & C, B & C, none of the above) and 5 choices just gets limiting in those scenarios.
on 1648520370
Love it. If there is one improvement is this: just highlight the right answer when it is selected, instead of all the answers.
on 1648121884
works well on both macos 10.15 and windows10. Having to put a space in between answers is annoying but manageable.
on 1647178077
Hi! Don't forget about space in answers! The add-on will be useful and work properly if you manage to deal with this little problem:)
on 1646550031
The wrong answers come up as correct or incorrect/red/green.
on 1646145877
Does not work on MacOS Monterey and Anki version 2.1.48. Fields are filled incorrectly. Sometimes choices appear double and triple, while others are completely absent. Too bad, because there is no multiple choice option for the Jura templates.
on 1645956277
It works all fine on Desktop, but I just can't get it to work on my iPhone. I will be using Cloze cards until it can be fixed on iOS.
on 1645543633
Does not work on Mac
on 1645350146
It works wonderfully on desktop! Thank you! I have searched for so long for a good Multiple Choice Add On!

On the IOS version you have to deactivated the Touch-Function on the left side of the screen. Then it works on mobile as well. ( I learned this from the comments here. Thanks for the tip!)
on 1644252785
works well :)
on 1644243600
Good, I think that a better approach would be to click a button to reveal options if you say so.. It might be another type.
Also, it looks duplicated on the export level. I wanted to convert a word - translation pairs to choices automatically. maybe I will do..
on 1643604299
Very helpful - great addon!
on 1643222097
I've double checked my cards, leaving spaces as required, etc. And this add-in isn't working for me at all. One correct answer, yet all three are green in some cases. One correct answer, but the answer that's marked green isn't the one specified on the card.

I've uninstalled the addin, then reinstalled the addin. Still doesn't work.
on 1642328108
Hey, its cool, but how to change code?? Where to find a document? I can't change it on anki!!
on 1641544988
It works fine (also on iPhone), if you type in spaces between the numbers in the Answers section, as instructed.
on 1640855647
That 's i need
on 1639078238
The addon works very well on PC and android, and it is helping me a lot. They are very annoying indeed those who value with thumbs down. Like many others, I am very grateful for the author's work, keep it going.
on 1637818135
Not showing the correct answer, back card says 'Correct answers x%'
on 1637618856
Great for making cards in the style of AMK questions
on 1637237989
I fixed the multiple choice settings:

Go to back template, search this line

var canswers = 0;

Add this before or after that line:

var resultadolinha = document.getElementById("canswerresult");
var tipo = document.getElementById("CardType").innerHTML;

Next, find this line:

//Colorize the atable and count correct answers.

And REPLACE everything from: if (colorizeatable) {
to the last "}" before this line: var canswerresult = document.getElementById('canswerresult'); (ATTENTION: DONT' REPLACE THIS LINE)

with this code:

//If the cardtype is 2 (multiple choice), then this code is going to fix the answer
if (tipo == "2") {
if (colorizeatable) {
if (solutions[i] && answers[i] == "0") {
arows[(type != 0) ? i : i + 1].setAttribute("class", "correct");
canswers = "Wrong";
resultadolinha.setAttribute("class", "errado"); //formating
} else if (solutions[i] && answers[i] == "1") {
if (colorizefalsefalse) { arows[(type != 0) ? i : i + 1].setAttribute("class", "correct1"); }
canswers = "Correct";
resultadolinha.setAttribute("class", "certo"); //formating
} else if (solutions[i] =="0" && answers[i] == "1") {
if (colorizefalsefalse) { arows[(type != 0) ? i : i + 1].setAttribute("class", "errada"); }

canswers = "Wrong";

resultadolinha.setAttribute("class", "errado"); } else {
arows[(type != 0) ? i : i + 1].setAttribute("class", "wrong");

}
}
}
// if the card type is 0 or 1, then apply the original code
else { if (colorizeatable) {
if (solutions[i] && answers[i] === "1") {
arows[(type != 0) ? i : i + 1].setAttribute("class", "correct1");
canswers = canswers + 1;
} else if (!solutions[i] && answers[i] === "0") {
if (colorizefalsefalse) { arows[(type != 0) ? i : i + 1].setAttribute("class", "correct1"); }
canswers = canswers + 1;
} else {
arows[(type != 0) ? i : i + 1].setAttribute("class", "wrong");
}
}
}
}


After this, replace this line:

canswerresult.innerHTML = "<b>Correct answers: " + Math.round(canswers / solutions.length * 100) + " %</b>";

With this code:

if (tipo == "2") {
canswerresult.innerHTML = "<b>" + canswers + "</b>";
} else { canswerresult.innerHTML = "<b>Correct answers: " + Math.round(canswers / solutions.length * 100) + "%</b>";}


In the style tab, add this CSS:

.nightMode .correct1 {
color: ghostwhite;
background-color: lime;
box-shadow: 0 0 0 3px darkgreen inset;
}

.correct1 {
color: ghostwhite;
background-color: #009900;
box-shadow: 0 0 0 3px darkgreen inset;
}
.errado {
color: red;
}
.errada {
color: ghostwhite;
background-color: OrangeRed;
box-shadow: 0 0 0 3px darkred inset
}

.certo {
color: darkgreen;
}

If something goes wrong, just copy and past the full code on the back template from here:
https://github.com/eduardocarnello/Anki-Multiple-Choice-Fix/blob/main/code
on 1637071477
Helpful
on 1636379245
Hi there, very useful thank you for the work. is it possible to add a sixth option for multiple choice ?
on 1636214780
Cool plug in
on 1634320642
For those that complain tha it doesn't work in IOS. This add-on DOES works perfectly fine in Ios. Your problem is that in "Preferences->Study?? (Repasar)" you have to deactivate "Touches" (Toques) that affect the left side of the screen. The you can select the pegs and then touch in any other activated part of the screen to show the answer. It's a little tough to select the peg though, but the add onn works prefectly fine. PS Sorry for my ankimobile is in Spanish!
Many thanks for having created such an useful tool.
on 1634136139
It's amazing on Windows and Android, great idea, really well done, but it doesn't work on iPhones.
on 1632823707
Poderia me ensinar a customizar a opção de única escolha para quando for errado ele marcar como 100% de erro?
on 1631365025
Not showing the correct answer, back card says 'Correct answers x%'
on 1628535325
Overall the add-on works, but there are very specific issues I'm struggling with:

When trying to create my flashcards using this add-on I'm having the issue that it's impossible to have the answers in a fixed way, you know, to have the answer options not randomized in the same flashcard. This is especially irritating because there are some questions that are multiple-choice with one single answer that can have incorporated the options "All of the above" or "None of the above", or the case in which one of the options implies more than one answer. For example:

Question 1: Which of the following is a unifying characteristic of life?
a- Ability to reproduce
b- Ability to develop
c- Ability to utilize energy
d- The presence of cells
e- All of the above
f- None of the above

Obviously, the correct answer is e- All of the above.

Question 2: Which of the following molecules can be dissolved in water?
a- sugar
b- salt
c- cholesterol
d- A and B
e- All of the above
f- None of the above

The correct answer is d- A and B.

My questions here are:

In this kind of questions and variants, what I can do to ALWAYS have the answer options "All of the above" and "None of the above" at the end of the answer options, no matter how randomized is the rest, in every single flashcard that has to consider this option of answers?

I'm also having issues settling in a fixed way the answer options as a- or b- or c- or d- or e- in the order that I'm setting? Because with every review of the flashcard, this order changes no matter what I do, and also when creating new flashcards with similar characteristics I have the same issue, that the options are just disorganized or randomized, no matter how many times I repeat the flashcard from scratch. Also, if I set the options in the suggested order it appears as I want for the first time, but when I try to edit the option and putting a- b- c- d- e- to each one of the options, everything goes upside down

How to have all the answer options randomized BUT leaving the options "All of the above" and "None of the above" at the very end, and not at the top of the options which is what normally happens, no matter if the question has only four possible choices of answer, or five, or three, or whichever number of options?

Thank you so much for the help. Kind regards,
Sergio
on 1628322818
Amazing! 10/10

In case you want the cards not to be shuffled: just delete the shuffle function from the front card tamplate.
on 1627804605
It does not show correct anwser.
on 1627288764
it is an excellent solution for the study.
I use it and it works well in AnckiDroid, AnckiWeb and Ancki for Windows.
only problem is that it doesn't work correctly in preview mode in Ancki for Windows
on 1626870952
Perfect add-on!
on 1626370140
please correct this add-on, thanks a lot
on 1626068113
This add-on is not usable for iPhone Anki. Everything is flagged as the wrong answer - it doesn't register the user selection. As another reviewer has said: "as soon as I touch the screen to select an answer, the add-on switches to "answer" (which is obviously marked as wrong)." Apparently works well on other platforms.
on 1625819332
thank u
on 1625747639
Works flawlessly then you use the right form
on 1624375261
Really good once it works. But there is something that was pointed out already that helped me a lot. I am simply goind to copy-paste the post :)

"""I also encountered the problem where it wouldn't render a card. ("Correct: x%"), the weird thing is that it worked on mobile. I checked out the code and found the problem. It has nothing to do with this addon directly, it is only that they changed the JavaScript in the Card Template. If you had the addon installed before and have cards with that template it will not pull the new template because there is already code in the template. What you could do is go to the addon files into the template.py file, copy the variable "card_front" and replace the content of the template front with that. Do the same with the "card_back" variable. You have to replace the whole content of front and back (CTRL+A) with everything that is between the """\ and \""" . If you can't fix it, report a bug in GitHub and someone can help you there."""

I think this would solve more problems than just the one described here, because anki seems to have problems importing the new updates

Hope this helps!!

(still getting the error Cannot read property 'innerHTML' )
*Edit*
innerHTML error has been solved. Seemed to be a copy past error, where text copied from the browser was not copied as plain text but something else.
on 1623852963
BEST. ADD-ON. EVER.

Amazing add-on. Works like a charm in AnkiDroid.

I just add 7 more questions fields and now is PERFECT.

Would you be so kind and help me with the proper CSS for the alternatives be like "a)" , "b)", "c)", "d)" e "e)" or suggest where can I find it? I try paste in the styling section:

ol {
counter-reset: list;
}
ol li {
list-style: none;
}
ol li:before {
content: counter(list, lower-alpha) ") ";
counter-increment: list;
}

But didn't work (not a programmer, just a curious noob).

Thanks for the add-on
on 1623847527
Works perfectly
on 1623642528
This Addon is highly dangerous by letting you believe its working as intended. It needs be pulled & reworked.
on 1622175653
Works perfectly, though does take a bit of figuring out to get it right! Thanks for sharing!
on 1621738947
IT WORKS (2.1.45 + Ankidroid)👌💕

Follow the USAGE AND Creating / Editing section 👀

Don't be like theses morons that downvote because they aren't following the editing format of the card type🤡

There is even a picture to guide though the process of making the cards itself 👏
on 1621279205
There is definitely something wrong with this addon..

When I choose wrong answer, then tap "show answer", it should show the good-one with green background, but it randomly? select as a good answer the other wrong one..
So its quite unusable for learning ..
on 1619950376
used to work alright, but with latest update no answers show up while reviewing a card so I can't select anything. This is only on windows, on android the addon works fine.
on 1619607431
i was nervous about people saying the answer is wrong. Turn out I need to add space on the answer column. right: 0 0 0 0 1 wrong: 00001. yes this works properly on mobile. thank you for sharing this addon.
on 1619556816
Works as intended. Love the detail of randomized answers
on 1619465188
Unfortunately this add-on is not usable for the iPhone Anki. No matter which question I choose, everything is flagged as the wrong answer (I've tested it with MC and SC. MC answers are not possible because as soon as I touch the screen to select an answer, the add-on switches to "answer" (which is obviously marked as wrong).
on 1619018101
Love the concept! After trying it out a bit it seemed to work fine, so I added a ton of cards to my decks in this format. However, I've found out that often it selects the wrong option as the right one. Example:

Question: Blue + yellow=
Q_1: black
Q_2: green
Q_3: white
Answer: 2

When I select green during review, it marks it as wrong, saying that black is the correct one. The first time I thought I had gotten something wrong, but going back to edit the card it seems that 2 is selected. By switching black and green, but keeping the answer 2, it says that green is correct. Is there a known fix? It's probably the best MC card format around, I'd really love to use it to study.
on 1618679730
I also encountered the problem where it wouldn't render a card. ("Correct: x%"), the weird thing is that it worked on mobile. I checked out the code and found the problem. It has nothing to do with this addon directly, it is only that they changed the JavaScript in the Card Template. If you had the addon installed before and have cards with that template it will not pull the new template because there is already code in the template. What you could do is go to the addon files into the template.py file, copy the variable "card_front" and replace the content of the template front with that. Do the same with the "card_back" variable.
You have to replace the whole content of front and back (CTRL+A) with everything that is between the """\ and \""" . If you can't fix it, report a bug in GitHub and someone can help you there.
on 1616257694
the values aren't working in the answer for multiple choice. The right answer I can't get please clarify the values
on 1616241278
Really love this.
It has drastically improved my studies.

Is there a way to get more than 5 answers choices. I can't seem to get the code for this right. "Adding a field" is not working either.
Would love to get an answer for this.
Comment from author
The note template needs a slight modification to support additional choices: https://github.com/zjosua/anki-mc/pull/20
on 1616239690
It does not work! if you add a multiple choice question i.e "2+2 equals:" "4" or "-99" then selecting 4 will only sometimes be marked as correct but not always. Also, I did read the instructions and made the card as "1 0" in the answers field with a space in between so that is not the problem.
on 1616148040
There is something wrong with the calculation for sc questions. When I select the wrong answer out of 4 incorrect and 1 correct answers it says correct answers: 60%, how is that possible? The colorcoding is a little bit off too, it shows the wrong answers in green and my selected wrong answer in red, but the right answer is also red, why?? Am I doing something wrong here?
on 1616109610
Works great!!! Thanks for the recent update.
on 1615565397
Something goes wrong since the latest version: checked status lost, answer options do not show completely.
on 1615130274
On mobile (android), whenever I select the answer I just see "Correct: x%"
Sounds like a great add-on if it'd work but at this stage it's not very helpful.
on 1614946234
Same problem in windows.

"In the Windows version when I click on "show answer" and if I chose the right answer, it appears highlighted in orange and the wrong answers are highlighted in green."
on 1614601950
In Ankidroid when I click on "show answer", it just shows the message "Correct: x%" with no true numerical % nor the correct answer displayed.

In the Windows version when I click on "show answer" and if I chose the right answer, it appears highlighted in orange and the wrong answers are highlighted in green.

In AnkiWeb when the new question shows up, the different possible answer don't appear. I have to click "edit" and then "save" for them to appear.
on 1613749724
thanks it runs like a charm! 😎👍
on 1613288399
Simple and intuitive. Works really well.

To have the back template show only the question and solutions (and not the question plus choices) find the following section of code and add one line:

var qtable = document.getElementById('qtable');
qtable.innerHTML = Persistence.getItem('qtable');
var output = document.getElementById("output");
var atable = qtable.cloneNode(true);
qtable.style.display="none" <!-- add this line of code - you can copy this entire line into the javascript -->
on 1611961415
You just have to leave spaces between the 1s ans 0s of the answers!!!!
For Example: Answer: 0 1 0 0 0
dont do this!!!!! Answer: 01000
on 1611679739
Fantastic, very easy to use
on 1611185351
overall a great addition to the app! my only complaint is it's a bit janky on mobile, it always says that my answer is wrong and seems to highlight all the other answers as right? it's perfect on desktop though.
on 1609072051
Amazing. I would like it to be possible to disable the percentage or show me "0%" if I fail. I also have 3 types of answers: the correct one, the incorrect one and the ones I did not choose. There should be 3 colors.
on 1608853646
it's very helpful but I'd rather just write the question without a title. for writing the correct answer instead of 1 i have to write 0 and 1 for the incorrect answer, otherwise, the color and the correct answer will not work properly. i really like the randomized answer feature.
on mac, the first question doesn't show the answer options.
on 1606434358
Basically quite all right but what should I do if I need a "Q_6" too? I added it but it still does not showing up and "0 0 0 0 0 1" does not work either in the "Answers" field.
on 1605987142
this is perfect! exactly what i needed
on 1605822243
Awesome thx!
on 1605259606
works super
on 1604041297
fantastic plugin.
How to add more answering options, in case 5 are not enough?
on 1602102406
Can someone share their card type via google drive so we don't have to make one?
on 1601800522
It's good but is there a way to make the title be blank as well and not be considered duplicates?
on 1600337274
I am studying variously with this add-on.

The regrettable aspect of this addon is that the front and back sides come out together....I hope it can be resolved.

In addition, this is a way to change the style of correct and incorrect answers.

from back
//Colorize the qtable. Find the part and edit it as shown below.

}
//Colorize the qtable.
if (solutions[i] && answers[i] === "0") {
qrows((type != 0)? i: i + 1].setAttribute("class", "correct");
} else if (!solutions[i] && answers[i] === "1") {
qrows((type != 0)? i: i + 1].setAttribute("class", "wrong");
}
}

When you're done editing, go to the style section

.wrong {
color: orange;

.correct {
color: green;

You can edit this item. If you like the background color, I think you can do that.

If my choice was right, it would be white.
If my choice is wrong, the one I choose will change the font color to orange and the correct answer will change to green.

It becomes very useful.
on 1600087188
I can't handle the correct answer on mobile

Looking forward to the next patch
on 1600079240
Thank you so much for making this
on 1599383324
Is there a way to have multiple questions on a card? Like this: http://prntscr.com/uce6pe

http://prntscr.com/ucea15
on 1599186660
This is one of the most awesome addons here in this site! Thanks a lot for creating it! I hope,you will keep working on it and enhance its features in future....
on 1597217036
This is what I needed!
on 1596725233
This is exactly what I needed, I'm so glad it works on mobile as well! thank you so much! Oh and thank you, Mr Omar G. Goda for your held on the colour coding.
on 1596423238
Very useful, thanks! Is there any possible way to add multiple choices at once from a database? I have tried it but wasn't able to do it so far (from an excel file with multiple columns, for instance). Anyhow, thank you very much.
Comment from author
Yes, Anki's import dialog allows to import from csv files.
on 1594748674
Just awesome for creating Multiple Choice cards in a fast way!
on 1593962990
Color coding does not work - green and orange are applied randomly regardless of whether the answer is correct or incorrect
on 1591804838
Noticed, that this add-on isn't working in the preview-mode. Tried it in review, and it worked perfect! Great Add-on, thanks for all the work!


"In my case, there isn't shown the answer template...i've got the latest Version of Anki. What could I do?"
on 1591743378
I can fill out the card and get the question and choices set up, but the back of the card only shows the question, source and extra information. There is no answer available. I can't seem to get it to work. I'm using Anki 2.1.26.
on 1590440763
Great add-on, works fine for me, I have edited the code of the card back as it displays green color if the choice is wrong and the user did not choose it.
Instead, I prefer the interface used by other online Qbanks that displays green only if the choice is correct (whether I have chosen it or not) and displays red only if the choice is wrong and I have chosen it.
If anyone wants to display the same color-coding, here is the code:

//Colorize the qtable.
if (solutions[i] && answers[i] === "1") {
qrows[(type != 0) ? i : i + 1].setAttribute("class", "correct");
} else if (solutions[i] && answers[i] === "0") {
qrows[(type != 0) ? i : i + 1].setAttribute("class", "correct");
} else if (!solutions[i] && answers[i] === "1") {
qrows[(type != 0) ? i : i + 1].setAttribute("class", "wrong");
}

If you want to apply it, you will see a similar section in the code of the card back, just replace it with this code and it will work fine. I could not paste the whole back code as there is a limit for the rating length here.

Good Luck
Omar G. Goda

Contact: Omar.gamal@med.helwan.edu.eg
on 1590158739
Same problem like the others that downvoted.

This is a good add-on, the front template is coming up perfectly fine with the title, question, and answer choices in the desired format. However when I choose to go to the back template to see the correct answer, all the answer choices disappear and only the title, question, source, and extra fields are visible.
on 1589407703
I can create Multiple Choice questions easily but sometimes it will mark random answeres as right or wrong although in the note I marked them the opposite. I alwas have to go and check the note behind the card to see if I was right...
Comment from author
By "mark as right or wrong" do you mean the green or orange highlighting?
on 1588531956
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-05-03 20:37:39

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 446, in handler
File "aqt\editor.py", line 444, in <lambda>
File "aqt\addcards.py", line 207, in _addCards
File "aqt\addcards.py", line 184, in addNote
File "lib\site-packages\anki\collection.py", line 367, in addNote
File "lib\site-packages\anki\collection.py", line 535, in _newCard
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-4>", line 2, in flush
File "lib\site-packages\anki\hooks.py", line 666, in decorator_wrapper
File "lib\site-packages\anki\hooks.py", line 658, in repl
File "C:\Users\Ev\AppData\Roaming\Anki2\addons21\865767531\__init__.py", line 179, in update_caches_for_card
self.add_cards_to_caches(s.col, [s.id], update=True)
File "C:\Users\Ev\AppData\Roaming\Anki2\addons21\865767531\__init__.py", line 99, in add_cards_to_caches
qa = card._getQA()
AttributeError: 'Card' object has no attribute '_getQA'
on 1588431289
GOOD
on 1588076743
Super cool add-on! I know a lot of anki users think that MC is kind of a passive way to study but I find it challenging just to sit there and try to think up challenging questions (especially those tough all of the answers apply except or those multiple answer questions). Anyways, I'm looking forward to using this add-on but I had a problem displaying the answers. I'm using the AllInOne (kprim, mc, sc) note type and when I answer the question it only displays the question and the extra field. Any thoughts to why that might be happening? I'm on Anki Version 2.1.24 (359b9f5c). Thanks for all the great work!
on 1587935388
Ich könnte vor Freude weinen!!! Vielen lieben Dank!
on 1587846557
This is a good add-on but when I first installed it, the front template is coming up perfectly fine with the title, question, and answer choices in the desired format. However when I choose to go to the back template to see the correct answer, all the answer choices disappear and only the title, question, source, and extra fields are visible.

Is there a way I can fix this, because I have no way of knowing if my choices were correct? I have also tried removing the add-on and reinstalling it but the problem persists. Currently using Anki 2.1.22
Comment from author
What is the name of the note type you are using for your multiple choice questions?
on 1587480293
BEST ADD_ON EVER!!!
Thanks a lot!!!
on 1587142610
Works really well. would it be possible to add 4 more more choices?
on 1586761034
I think it's great add-on, thanks for your efforts, but it will be a much better if we can change the table and the text alignment to center, and if we change the back template for the single and multi choice questions to show the right answer or answers in order after the answer line, instead of repeating the table.
on 1586373884
Great addon. Would it be possible to have the option to leave out the "title" field in a future version?
on 1585941891
Very interesting! Thanks!
on 1585889762
My version is 2.1.15.Your add-on cannot be installed on my anki.If I update to higher version,will the other add-ons which I installed before disappear and I need to re-install all add-ons?
Comment from author
No, updating Anki will not uninstall any add-ons you have installed.

Some might still break, because they rely on code that was changed in newer versions of Anki.
If updating Anki breaks any add-ons you can't do without, you can still downgrade Anki again by downloading an older installer here: https://apps.ankiweb.net/downloads/archive/
on 1585647864
Help for parpre to examine!
on 1584319567
thanks
on 1584153554
This is a good add-on and was working when I first installed it, but for some reason it is now dysfunctional. The front template is coming up perfectly fine with the title, question, and answer choices in the desired format. However when I choose to go to the back template to see the correct answer, all the answer choices disappear and only the title, question, source, and extra fields are visible.

Is there a way I can fix this, because I have no way of knowing if my choices were correct? I have also tried removing the add-on and reinstalling it but the problem persists. Currently using Anki 2.1.21
Comment from author
There was a change in Anki that broke the original add-on.
If you reinstalled the add-on on Anki 2.1.21, there is now a new note type called "AllInOne", which has been added by the add-on.
Convert your existing multiple choice notes to this new note type, then it should work again.
on 1583143649
Really great addon, thanks a lot!
on 1582593458
Great add-on! Could you add randomization to the order of the elements so that we do not memorize their position? For example:

What's the tallest building on Earth?
1st review answers would be displayed abcde
2nd review answers would be displayed aecdb
3rd review answers would be displayed cdeab

and so on... :) (like a set randomizer)
on 1582213629
Perfect!
Working now
Thanks to update for the last 2.1.20!!!!

Great job!!!
Comment from author before post was edited
Yes there was a change in Anki (7fcb6b5) that broke the add-on.
I just updated it and it should work again. But you'll have to convert your existing notes to the new "AllInOne" note type.
on 1582205745
Works good. Would be awesome if one could clock on the answer (instead on the circle-symbol) to select it.
on 1581943659
would be nice to have but
can't download it :(

yap it is indeed a good add-on thanks for helping us
Comment from author before post was edited
The add-on needs Anki version 2.1.20 or higher.
The normal release is currently at version 2.1.19, so you'll have to run the current beta to use this add-on now.
Or just try again after updating once the regular release of Anki 2.1.20 is published.
on 1581154005
This is so excellent! Answers in shuffle. Works great with the 2.1.20 beta8 - as written, you need to be on 2.1.20 at least - still beta
Like it very much!
on 1580902113
Error !!!!
Comment from author
Would you mind providing more information on this error?