Image occlusion card made on iPad doesn’t show back extra images/text even after adding it in

Just brought the Ankimobile app for my iPad and I’ve noticed that while making an image occlusion card the back extra tab doesn’t show up while reviewing. While editing a card the back extra field is tiny , it allows me to paste images / type text in the field but it doesn’t show up while reviewing. When I do it on my Laptop it’s fine but i can’t replicate the same on my iPad. The back extra only shows up when I edit the card whilst reviewing.
Is there any fix to this, it’s a pain to go back and add the back extra field retrospectively

Can you paste the template?

You mean this ?

No that’s the editor for IO cards. I’m asking for something like this:

{{#Header}}<div>{{Header}}</div>{{/Header}}
<div style="display: none">{{cloze:Occlusion}}</div>
<div id="err"></div>
<div id="image-occlusion-container">
    {{Image}}
    <canvas id="image-occlusion-canvas"></canvas>
</div>
<script>
try {
    anki.imageOcclusion.setup();
} catch (exc) {
    document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>

<div><button id="toggle">Toggle Masks</button></div>
{{#Back Extra}}<div>{{Back Extra}}</div>{{/Back Extra}}

In my Android it’s in “Manage note types”. Do you know where to find it in iOS app? If you can get it, paste it here like this:

```
here goes the template code. 
you have three backticks before and after it in newlines.
```
{{#Header}}<div>{{Header}}</div>{{/Header}}
<div style="display: none">{{cloze:Occlusion}}</div>
<div id="err"></div>
<div id="image-occlusion-container">
    {{Image}}
    <canvas id="image-occlusion-canvas"></canvas>
</div>
<script>
try {
    anki.imageOcclusion.setup();
} catch (exc) {
    document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>

<div><button id="toggle">Toggle Masks</button></div>
{{#Back Extra}}<div>{{Back Extra}}</div>{{/Back Extra}}

Sorry, I misunderstood you. You meant the text you enter in {{Back Extra}} isn’t saved when adding IO notes? I can reproduce this on AnkiDroid. I need to retroactively edit the cards after they already have been created.

I’m not sure we can do anything here though. It might be a bug, so let’s wait until someone has confirmed.

Yea , I’m able to type and add images while making a new card but the said images don’t show up in the back extra field when I review them. The only way to add back extra images is editing the card while reviewing


If I understand correctly, the “Back Extra” field is behaving normally for adding and editing, on both your iPad and your laptop. But when you study the cards, nothing shows up – only on your iPad – is that right?

  1. Does it matter whether the note was created/edited on your laptop or iPad? Or is this happening for all notes when you study on the iPad?
  2. Is it the same if you have only text, or only an image in the field?
  3. In your note editor screenshot – yes the fields being so narrow is unusual. (This particular Mask/Note view is unique to this note type, but I assume you’re not seeing that narrow field issue for any other note types in the editor?)
  4. I also notice that you’re missing a field. This note type should have 3 fields, but you’re missing the one for “Comments.” When you look at the note editor on your laptop can you see all of the fields?
    image
  1. The IO cards made on my PC work just fine no complaints, only the ones made originally on my iPad fail to show the “Back Extra” field.
  2. This occurs for both text and images, none of it shows up while reviewing when I make it on my iPad, the only workaround for this is editing the card while reviewing.
    I tried to replicate the same on my phone using AnkiDroid and got the same results as Ankimobile on iPad. I/O doesn’t display “Back Extra” field even on my phone(android).
    3.There are no issues with other type of cards, like Cloze which I also commonly use, only IO cards have this issue.
    4.The “Comments” field is absent on my Ankimobile app, but its present on my PC even though it’s the same template.

I assume that you mean that opening the edit window allows you to see the contents of the field – and not that after editing the note this field shows up correctly while studying. Is that correct?

Can you see the “Comments” field when you first open the note to edit it – before you go into the occlusions editor? [I’m comparing to AnkiDroid – does AnkiMobile have the same 2-stage note editor?]

This is working for me on AnkiDroid, so that might be a sign of what the issue is. In the 1st stage of the note editor, I can see all 3 fields – Header, Back Extra, and Comments. If I click “Edit Occlusions” to enter the 2nd stage of the note editor, and switch to Note, I can see only 2 fields – Header and Back Extra (which are narrow, like you see in AnkiMobile).

But in both stages of the editor, I can enter and edit text, and the text (for Header, Back Extra) appears on the cards as expected.

Since you’re seeing something different on AnkiDroid and AnkiMobile, it’s possible that your “Image Occlusion” note type is broken. You can try switching that out, but it will be easiest to do on desktop.

First, get all of your devices in sync. Rename this note type to “Image Occlusion broken” – add a new note type based on the default “Add: Image Occlusion” – Change Note Type to move these notes from “Image Occlusion broken” to the new note type. Is it still happening?

The IO editor works fine from Edit note screen. It’s only when you add a IO note from the Add notes screen (click ) that the field content isn’t saved.

Are you seeing this on AnkiMobile or AnkiDroid? And what version? Please write up your reproducible case.

I’m on latest beta (beta1) of AnkiDroid.

If you need more detailed steps —

  1. Double-click in Deck Picker screen.
  2. Change your note type to IO.
  3. Select an image from gallery.
  4. Add one rectangular mask.
  5. Add text in the fields.
  6. Save the note.

Now view the cards generated in reviewer. The text I fields doesn’t appear. If you open the note in editor, it seems the text isn’t saved.

Sorry, this appears to be a bug. I’ve logged it on Back Extra field lost when adding image occlusion on mobile clients · Issue #3417 · ankitects/anki · GitHub

2 Likes

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