wroos
January 26, 2022, 11:35pm
1
Description
Image is lost (not show) when editing/opening a saved draft in Enketo (locally)
@martijnr
Steps to Reproduce
Upload and deploy the form
Open the form with Enketo, select an answer and save it as draft: The image is shown
Re-open the saved draft - the image is LOST (no more shown)
Expected behavior
Image should show up, also on re-edit
Actual behavior
Initially
After save draft, re-editing
Additional details
Firefox 96.0.2 (64 bits), but same problem with Chrome (FRENCH settings, see below)
XLSForm
Laptop with MS 10
But after another action, like save or submit the image will re-appear
Same problem when using Android smartphone (Firefox or Chrome). Android 11. UI One 3.1 Galaxy A32.
There is no problem when editing submitted cases on the server.
1 Like
Kal_Lam
January 27, 2022, 12:09pm
2
@wroos , could you provide more details on this (what was it that you did at this phase):
wroos
January 27, 2022, 12:40pm
3
Dear @Kal_Lam ,
See last two screenshots, please. If you click on save as draft, the image reappears in the background. Or go on with “charger l’enregistrement” (next one).
Sorry, I reset the tag: It is not edit submission , but edit draft . I hope you agree.
Josh
February 23, 2022, 7:20pm
5
Hi @wroos , I apologize for not responding sooner. I have confirmed the bug and will write up an issue about it — just to clarify, the issue is with media included as part of the form such as an image displayed with a note
question and not for uploaded media as part of the data collection.
2 Likes
Josh
February 23, 2022, 7:32pm
6
@wroos you can track the issue here
opened 07:32PM - 23 Feb 22 UTC
**Describe the bug**
If the form contains media, such as an image in a `note`… type question, the media does not load if a draft record is loaded for editing.
**To Reproduce**
Steps to reproduce the behavior. If applicable please include the smallest possible XLSForm or XForm (as zip or link).
1. Create a form with media
**survey**
| type | name | label | media::image |
| --- | --- | --- | --- |
| note | an_image | Image | image.png |
2. Open offline form and save record as a draft
3. Open the draft record
4. See image is missing
**Expected behavior**
The image displays as it would normally.
**Additional info**
Reported in Kobo forum: https://community.kobotoolbox.org/t/image-not-shown-on-edit-of-draft-after-save-in-enketo-kobotoolbox/26439
1 Like