Adding small photo with each answer

When testing this I had issues with media displaying correctly when there are language options in the survey if the media column(s) are not also localized. If you remove the ::English you should be fine. Or you can add a media column for each language. See below. This XLSForm documentation says "::[language] is optional" for media::image::language but it seems like that may not be be always the case, depending on other aspects of your form.

survey tab

+----------------------+-----------+------------------------------+
|         type         |   name    |        label::english        |
+----------------------+-----------+------------------------------+
| select_one mask-type | mask-used | Which mask type did you use? |
+----------------------+-----------+------------------------------+

choices tab

+-----------+----------+----------------------------+-----------------------+
| list name |   name   |       label::english       | media::image::english |
+-----------+----------+----------------------------+-----------------------+
| mask-type | surgical | Normal surgical facemask   | Surgical.jpg          |
| mask-type | n95      | N95 respirators mask       | N95.jpg               |
+-----------+----------+----------------------------+-----------------------+

settings tab (optional)

+------------------+
| default_language |
+------------------+
| english          |
+------------------+

masks.xlsx (9.7 KB)

4 Likes