[BUG]: Card does not display all fields in the normal section where you rep, only in the card viewer from browser mode.
Checked for duplicates?
- [X] This issue is not a duplicate
Does it also happen in the desktop version?
- [X] This bug does not occur in the latest version of Anki
What are the steps to reproduce this bug?
- Download this deck
- Unpack it into AnkiDroid
- Go to the first card
- Flip the card
- Go to the card browser
- Look at the preview
Expected behaviour
The back of the card should have additional fields.
Actual behaviour
The back of the card is missing fields.
https://github.com/user-attachments/assets/dd565f29-38c5-4814-903b-3091cbce111e
Debug info
Occured on most recent version of Anki droid on multiple Android devices.
(Optional) Anything else you want to share?
I posted about the bug and discussed it with David A in discord.
Discord user jorge_baboy
Research
- [X] I am reporting a bug specific to AnkiDroid (Android app)
- [X] I have checked the manual and the FAQ and could not find a solution to my issue
- [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing
Found a workaround. Apparently the issue is caused because there's a script tag in a div. Everything after the script tag gets ignored by AnkiDroid.
Fixed by moving all scripts to the end of the file.
Found a workaround. Apparently the issue is caused because there's a script tag in a div. Everything after the script tag gets ignored by AnkiDroid.
Fixed by moving all scripts to the end of the file.
i tried it but it dosen't work, my scripts are in the end of the front and the back whithout div tag. Does it work for you @ClaytonRefold ?
In my case ankidroid doesn't recognize an id tag
Hey,
I found what is the problem but not the solution. Ankidroid does not recognize the tag "id" which is used in the back and re-used in the front. Yet on computer or in ankidroid prewiew it works.
An example : Here is a script to write the answer and display it on the back:
FRONT :
(here i capture the id value of "typeanwser" for the back)BACK:
but it's workd on review mode ? it's strange.
Will be fixed together with #14302