I got this code to switch to the back of the card from here.
if (typeof pycmd !== "undefined") {
pycmd("ans")
} else if (typeof study !== "undefined") {
study.drawAnswer()
} else if (typeof AnkiDroidJS !== "undefined") {
showAnswer()
} else if (window.anki && window.sendMessage2) {
window.sendMessage2("ankitap", "midCenter")
}
It seems to be working only in Anki Desktop (I have tried on Anki Desktop, AnkiWeb and AnkiDroid)
Could anybody help me to switch to the back of the card in the other versions of Anki?
This will work for all platforms, right? (I can’t test on AnkiMobile, but wish to be aware which platform this might not work on, so that I can add a disclaimer when sharing the deck)
I can only guarantee this will work on the computer Anki and AnkiDroid. AnkiMobile doesn’t have a reliable way as far as I know. The method shared in the linked thread is probably broken now. See disclaimer there: