1. What is the issue? Please be detailed.
If a select has image/big-image files against the options, but the select is read_only = yes, the image cannot be opened by tapping, as read only is causing Collect to discard all taps on the label-image hitbox. If the taps on the label hitbox were ignored but not on the image hitbox when big-image is present this should resolve the issue?
My use case
I have a choice list that has small & large images that illustrate the location to help guide the user to the correct spot, small is not enough, it needs to be enlarged to identify it.
After selecting a parent item, a repeat is generated with a count of all child items in the list, and each item is reported on.
Previously we allowed the user to select in any order, and as one was selected it was filtered out from the other repeat elements. However, with interrupted work, after saving part way and restarting, they navigate to repeat #1 which already has an item selected, but change that selection to the 'next' item, in the process wiping out the data from the original item selected. Using 'go to end' and going backwards also confuses as it then lands on the last element. Instructing to use the ToC or go next, next, next until they hit a constraint (next incomplete element) hasn't been successful.
The thought was to prevent the possibility of causing a bad selection by preselecting each item using position()=position(current()/..), so they would be forced to complete each in order and couldn't change the item. This works fine, but now the image can't be enlarged.
Removing read_only allows accidentally changing the select, and it will only recalculate when off screen after a save etc, so collected data for the changed item will be associated with the calculated item and not noticed by the user, resulting in bad data.
2. What steps can we take to reproduce this issue?
- add a select for a choice list with image and big-image filenames
- have a calculate determine a value for the select
- test the form, see the preselection and open any big image by tapping the thumbnail
- set the select to read_only =
yes - try to open any big image
3. What have you tried to fix the issue?
Not a fix, but a workaround
Because image and big-image are special, I can't calculate the filenames directly with an instance lookup, so have to add two more columns (eg smallimage and hugeimage) and duplicate the filenames here (can't remove image and big-image altogether as we need to enable upload to Central) then calculate the filenames using these (or is there a more elegant way to lookup the special columns @ln?)
Then I can have a note that puts these calculate fields into its image and big-image column and the note will show the thumb for the preselected item, that can be tapped to embiggen.
4. Upload any forms or screenshots you can share publicly below.
I can supply an example if needed