How does Anki find out which field goes to the front or back?

CONTEXT: I’m displaying cards on a website I created.

I am trying to display a card on my desktop. It’s all good when the card type is just basic. But I am struggling how to display other cards which use other card types (basic and reversed, 10 questions 1 answer, etc).

Here’s how I understand the steps:

  1. Using the card nid, find the note.
  2. Get the note.mid to find the model.
  3. Using the card ord, get its template.

After this, I don’t know anymore what to do to finally display the card. I hope someone can help. Tis website but only to an extent.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.