Question: How can I add multiple images and audios inside a single question? Can I include multiple filenames in a single cell (in the "media::image" or "media::audio" columns), and if so which separator do I use?
For example, I need the user to be able to listen to 3 different audio files before answering the question (answers: yes or no). Another example, I need to display 3 images below a question's label for the user to look at before choosing an answer.
Please note: I don't want the media files associated with the answers, I need them to just appear below the question label (above the answers).
I'm trying to get this to work via XLS Form, using ODK Collect v1.22.0 on
Samsung Galaxy Tab A / Google Nexus 7 (Android)
Hi Arif, thanks for your response. I had reviewed both the bird form and the xlsform link but unfortunately it doesn't say how to put mulitple images in the question itself, meaning in the survey tab (and not in the choices tab, as the images/audios should not be associated with any particular answer).
Do you know how to add multiple images or audios in the survey tab so they appear below the question label but before the list of answer choices in the ODK Collect app?
the case you described is not possible in ODK Collect. Each question can have one image one audio file and one video file. If you have a select one/multiple question each option can have one image one audio file and one video file as well.
@Grzesiek2010 is correct in terms of intentional features. I haven't tried this myself but you might be able to do something like a question with a label, then a read-only select with audio, then a question with a hint all on a single screen (see field-list documentation) to get the behavior you want. The part I'm not sure about is whether you can play audio or video from a read-only select.
For images, the approach generally taken is to create a composite image with all the visual elements you want displayed.
Thanks for posting and uploading your work around!
I have used the xlsx form from you zip file and tested it inside an ODK Collect based app. Unfortunately it is not working for me. Instead I get radio buttons and images underneath each other (I need them next to each other like in your screenshot):
The appearance I used: columns-4 no-buttons is a new appearance we added in the latest version. It's not documented yet (because it's new) but we will do that soon.
columns-4 means you want to use select options in 4 columns no-buttons means don't use radioButtons/checkBoxes but use media files if exist.
so generally it's a select_one question where options are placed in 4 columns using just images, and the question is read-only so you can't select anything.
It depend what you want to achieve. In ODK Build you can and media files to particular questions:
but it's not possible to do the same with choices that you use in select_one/select_multiple questions. If you use ODK Build you can export your form to xls file and then add required changes.
it's enough if i just put the image in the question..
however you didn't put the example of how I write this, just showed the option in odk.build..
could you please write an example of how I would write so that the image would be attached to the question? I'm a little layman in programming so I assemble my forms in the builder. I'm very grateful and I look forward to hearing back....
Hi Bruno,
If you wish to display an image with your select, you can add an image column in the choices tab of the XLSX file you have otherwise finished and downloaded from Build, then place the filename(s) of the image(s) there.
You would add it similar to the yellow cells here:
This is what it will look like in Enketo, it'll be similar in Collect:
wow thank you so much for answering me, it clarified a lot...
I saw that you have a good understanding, I've been racking my brains for days to know how I fill out a form using XLSX or XML, do you understand? I would like to have a form already filled out but using the xml in a way that I can upload the file in the application with some questions already answered and others not.. I hope you understand this will help me a lot. I'm waiting