1. What is the issue? Please be detailed.
Background
- In my form, I have a filtered choice list that uses a CSV
- The choices have
image
andbig-image
filenames, and I also have an internal choice list with only the filenames to force their upload to Central as currently required.
2.1 Tangent: Ideally I would like to show the thumb under the choices, and tap to enlarge, but this is not possible with an external select (unless there is a current workaround?) and only works with an internal select.
2.2 Tangent2: I tried showing the image of the selected item under the question label, but this only works when changing to a different screen and back again to redraw it, related to non dynamic label/hint values. - To get past the tangents, I added a
note
with relevance as the select!=''
, and put an instance lookup for the filenames underimage
andbig-image
for it, eginstance('the_CSV_file')/root/item[name=${the_select}]/image
. When selecting a choice, the note is relevant, the thumb shows, and can be enlarged. Changing choices then changes the image instantly.
Issue
- While testing image resolution, I uploaded larger and smaller images against
image
andbig-image
files in Central. Syncing the draft would update the large image (sync, select, tap image in note, a different image is shown), but the small image displayed in the note didn't change (sync, select, same small image is shown in note) - I checked the files in the project directory and I could see the new file, with later timestamp on it, so it did sync to device correctly from Central
- I force quit Collect, reopened, tried again, the small image still didn't update
- I removed the draft, re-added, then tried, and the small image was now correct.
- I tried in Enketo, but the images don't display at all, the mouseover is
https://your-odk-server/-/%20jr://images/
2. What steps can we take to reproduce this issue?
For an image
that is dynamically looked up via instance
in a note, replace the image in Central and see if Collect updates. For any hardcoded image in a note, is this also the case?
3. What have you tried to fix the issue?
As above.