I am trying to restrict a certain choice in a select_multiple variable. For example: One of the variables choices include
- Burnt connecting wire
- Burnt electronic items
- Loss of HH items
- No damage was done
- Any other specify
In this above example, if any one of the or all of (1 or 2 or 3 or 5) the choices selected, the 4th choice (No damage was done) cannot be selected. Please guide me how to deal with this type of variable.
Constraints is what you need! Please take a look at the doc and let us know if you need more help.
You can add a constraint to your select_multiple question in this form:
to prevent user selecting 'No damage was done' with any of the other choices.
Thank you for your quick reply. I will try this formula and
Similar approach to what @rassam proposed, you could simplify it by using this constraint pattern:
not(selected(.,'4') and count-selected(.)>1) which limits the use of fourth item to a single selection
Thank you so much for your response. Meanwhile I also have one more query, I am able to capture the pictures and able to download to xls,cvs but I am not able to view those taken picutre (It is just saved in .jpg format). Please tell me how to view them.
What do you mean by:
any error or what?
Do you send (and then download) it from aggregate or google sheets?
Thank you for your response. I understand I can only download images or any other media files only from gallery. I have changed the username and cell number as instructed in this step, but I am getting an error (which I have attached a screenshot of it). Please tell me where I have gone wrong.
This is my link which I have created in excel:
This is the actual link when I clink on the image in kobotoolbox:
- How to download all the collected pictures from kobotoolbox and keep them in excel (one should be able to clink on the hyperlink and be able to view the picture offline)
- Can I reduce the camera resolution by writing any logic or it should be done in the device settings?
I followed this below mentioned step:
Download your data to XLS and open the file
In a new column next to the one that contains the filenames of your images, enter the following formula: If using the
If using OCHA's server: =HYPERLINK("https://kc.humanitarianresponse.info/attachment/original?media_file=username/attachments/"&A2)
In the formula replace 'username' with your own username and 'A2' with the first cell reference that contains the file name of your photo. Then copy the formula down for all your records.
You can then click on each of the links to open the media file. Note: This will only work if you are signed in to your user account in your default browser.
It's a problem with Kobo so please ask here: https://community.kobotoolbox.org/