1. What is the issue? Please be detailed.
I have a select_one question using image-map
2. What steps can we take to reproduce this issue?
In the survey tab of the XSLForm put:
| Column 1 | Column 2 | Column 3 | D | E |
|---|---|---|---|---|
| type | name | label | appearance | image |
| select_one GIN_adm0_guinea | s_from_GIN_adm0_guinea | s_from_GIN_adm0_guinea - select_one GIN_adm0_guinea - | GIN_adm0_guinea.svg | |
In the choices sheet paste these values
| Column 1 | Column 2 | Column 3 | D |
|---|---|---|---|
| list_name | name | label | audio |
| GIN_adm0_guinea | GIN_adm1_boke | Boké | boke.mp3 |
| GIN_adm0_guinea | GIN_adm1_conarky | Conarky | conarky.mp3 |
| GIN_adm0_guinea | GIN_adm1_faranah | Faranah | faranah.mp3 |
| GIN_adm0_guinea | GIN_adm1_kankan | Kankan. | kankan.mp3 |
| GIN_adm0_guinea | GIN_adm1_kindia | Kindia | kindia.mp3 |
| GIN_adm0_guinea | GIN_adm1_labe | Labé | labe.mp3 |
| GIN_adm0_guinea | GIN_adm1_mamou | Mamou | mamou.mp3 |
| GIN_adm0_guinea | GIN_adm1_nzerekore | Nzérékoré | nzerekore.mp3 |
In Collect, this should show a normal list with audio buttons that play audio.
Here is a screenshot:
However, if you add image-map to the appearance column to the select_one, the appearance rightfully changes in Collect to be able to select a portion of the SVG, but it doesn’t play any of the audio when an answer region is selected. Screenshot here:
I will also note that the audio doesn’t work in Enketo, but I haven’t been using Enketo very often so not sure if this is a known issue. Getting audio to work for Web Forms for both regular responses and image-map would be very helpful.
3. What have you tried to fix the issue?
Not sure what else to do besides the toggle above showing that the audio is working with appearance as null and doesn’t work when appearance is image-map.
4. Upload any forms or screenshots you can share publicly below.
GIN_adm0_guinea.zip (154.4 KB)
NOTE: select_one_from_file also doesn’t work, but I think that is a different issue, be sure to put the choices from the CSV or the table above in the choices sheet of the XLSForm


