Multiple Choice for Anki
0.05MB. Updated 2022-12-17.
The author has shared 3 other
item(s).
Description
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:
- 2.1.44-2.1.55+ (Updated 2022-12-17)
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

Is there a way to always put the same number in qtype as default?

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.

Works!

Funciona!

Doesn't work at all.

very good

A bit clumsy but works very well

Excelente Add-ons o Multiple Choice for Anki. Parabens ao Desenvolvedor!!!

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.
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.

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. :))
"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. :))

Inconsistent. Seemingly broken. Displays the answers wrong in single choice.

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
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

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.

does not work according to exemplar. I'm using windows 10, most recent update of anki as of today

Superb!

Not configurable

wrong answers

great idea to make mcq on anki

EXCELENTE!

It didn't work on AnkiDroid.
My AnkiDroid gets crazy with this Add-on.
My AnkiDroid gets crazy with this Add-on.

Another better Multiple Choices: https://ankiweb.net/shared/info/1497603664

Color coding is incorrect.

Mistake with the no answers

good

Another Multiple Choice addon with automating create choices and shuffle choices. Visit: https://ankiweb.net/shared/info/1497603664 for more information

only supports 5 choices, not configurable

Many thanks! Really useful.

Thank you.

thank you so much!! <3

I'm really enjoying this plugin! Thank you so much for your dedicated work to the community!

Amazing, just what I needed!

"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.
I have version 2.1.5, but it doesn't work.

Is there a way to change the name of the "extra 1" field to "justification" in the back template?

Works fine on PC

Awesome

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.

Love it. If there is one improvement is this: just highlight the right answer when it is selected, instead of all the answers.

works well on both macos 10.15 and windows10. Having to put a space in between answers is annoying but manageable.

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:)

The wrong answers come up as correct or incorrect/red/green.

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.

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.

Does not work on Mac

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 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!)

works well :)

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..
Also, it looks duplicated on the export level. I wanted to convert a word - translation pairs to choices automatically. maybe I will do..

Very helpful - great addon!

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.
I've uninstalled the addin, then reinstalled the addin. Still doesn't work.

Hey, its cool, but how to change code?? Where to find a document? I can't change it on anki!!

It works fine (also on iPhone), if you type in spaces between the numbers in the Answers section, as instructed.

That 's i need

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.

Not showing the correct answer, back card says 'Correct answers x%'

Great for making cards in the style of AMK questions

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
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

Helpful

Hi there, very useful thank you for the work. is it possible to add a sixth option for multiple choice ?

Cool plug in

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.
Many thanks for having created such an useful tool.

It's amazing on Windows and Android, great idea, really well done, but it doesn't work on iPhones.

Poderia me ensinar a customizar a opção de única escolha para quando for errado ele marcar como 100% de erro?

Not showing the correct answer, back card says 'Correct answers x%'

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
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

Amazing! 10/10
In case you want the cards not to be shuffled: just delete the shuffle function from the front card tamplate.
In case you want the cards not to be shuffled: just delete the shuffle function from the front card tamplate.

It does not show correct anwser.

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
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

Perfect add-on!

please correct this add-on, thanks a lot

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.

thank u

Works flawlessly then you use the right form

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.
"""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.

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
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

Works perfectly

This Addon is highly dangerous by letting you believe its working as intended. It needs be pulled & reworked.

Works perfectly, though does take a bit of figuring out to get it right! Thanks for sharing!

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 👏
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 👏

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 ..
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 ..

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.

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.

Works as intended. Love the detail of randomized answers

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).

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.
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.

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.
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.

the values aren't working in the answer for multiple choice. The right answer I can't get please clarify the values

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.
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

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.

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?

Works great!!! Thanks for the recent update.

Something goes wrong since the latest version: checked status lost, answer options do not show completely.

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.
Sounds like a great add-on if it'd work but at this stage it's not very helpful.

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."
"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 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.
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.

thanks it runs like a charm! 😎👍

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 -->
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 -->

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
For Example: Answer: 0 1 0 0 0
dont do this!!!!! Answer: 01000

Fantastic, very easy to use

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.

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.

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 mac, the first question doesn't show the answer options.

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.

this is perfect! exactly what i needed

Awesome thx!

works super

fantastic plugin.
How to add more answering options, in case 5 are not enough?
How to add more answering options, in case 5 are not enough?

Can someone share their card type via google drive so we don't have to make one?

It's good but is there a way to make the title be blank as well and not be considered duplicates?

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.
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.

I can't handle the correct answer on mobile
Looking forward to the next patch
Looking forward to the next patch

Thank you so much for making this

Is there a way to have multiple questions on a card? Like this: http://prntscr.com/uce6pe
http://prntscr.com/ucea15
http://prntscr.com/ucea15

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....

This is what I needed!

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.

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.

Just awesome for creating Multiple Choice cards in a fast way!

Color coding does not work - green and orange are applied randomly regardless of whether the answer is correct or incorrect

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?"
"In my case, there isn't shown the answer template...i've got the latest Version of Anki. What could I do?"

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.

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
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

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.
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.

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?

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'
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'

GOOD

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!

Ich könnte vor Freude weinen!!! Vielen lieben Dank!

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
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?

BEST ADD_ON EVER!!!
Thanks a lot!!!
Thanks a lot!!!

Works really well. would it be possible to add 4 more more choices?

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.

Great addon. Would it be possible to have the option to leave out the "title" field in a future version?

Very interesting! Thanks!

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/
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/

Help for parpre to examine!

thanks

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
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.
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.

Really great addon, thanks a lot!

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)
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)

Perfect!
Working now
Thanks to update for the last 2.1.20!!!!
Great job!!!
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.
I just updated it and it should work again. But you'll have to convert your existing notes to the new "AllInOne" note type.

Works good. Would be awesome if one could clock on the answer (instead on the circle-symbol) to select it.

would be nice to have but
can't download it :(
yap it is indeed a good add-on thanks for helping us
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.
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.

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!
Like it very much!

Error !!!!
Comment from author
Would you mind providing more information on this error?