Specify Other when Other is selected with other choices in a select multiple form

Now I see, so try this: select.xlsx (6.2 KB)

Wouldn't this only allow the text box to be visible if the person selected other and no other answer choices? That is what currently happens.
I would like them to be able to select many answers in addition to selecting other. For example they choose A and C and Other and then the next question is a text box to type in the other. Im pretty lost.

I think I don't understand again :slight_smile: The first form displays an additional question if you select other or other + something else.
The second form displays that question if you select only other option. What's wrong?

Which case do you need?

I need the first case. I tried what you suggested but for some reason it is not working for me. :frowning: Maybe I am doing something wrong with using the first case.

Ok so pleas attach your form (you said it's attached but I can't see) and I try to look at it.

CFAR_HIV_Survey_ODK_form_v2.6.xls (92.5 KB)

Thank you for taking a look at my form. I really appreciate it.

I'm not able to covert your form using http://opendatakit.org/xiframe/ but you should add selected(${B14},'96') instead of ${B14} = 96 in L51 and it should work. Did you try it?

Ok thank you! I will try it again.

Hi Sarah,

Try this syntax...

under "type" enter "select_multiple B14 or_other" and under "name" enter "B14".

This should allow you select chosen options alongside other and the text variable will open for you to type in.

Best regards,
Chinedu.

1 Like

@Chinedu_Arinze is exactly correct, but I wanted to add a clarifier for @Sarah_Pfeil because the or_other construct does have limitations if you need to support multiple languages or code other as a different value.

In this example below, favorite_colors uses the or_other construct, while favorite_numbers does this manually using relevance.

image

t9062.xlsx (11.0 KB)

You'll note that favorite_numbers question lets you specify the wording of the other question, the label of the option in whatever language, and what value/name is saved to the database (e.g., -1). You can also specify whatever data type you want. For example, you can have an other that is a GPS coordinate or a picture.

One limitation you should be aware of is that you cannot put favorite_numbers and other_number on the same screen (e.g., in a group with a field-list). They have to appear on different screens.

2 Likes

8 posts were split to a new topic: If user selects "none" in multiple select, prevent selection of other options

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

The or_other is an interesting option that I overlooked, but upon testing it, I realized that the value is stored in yet another column. Is there a way to store the "other" value in the same column as the original question? Cause after all, it's an answer to the same question.

P.S. Please let me know if this should go into a new question.

Hi @techGus,

There is no way to acheve that in the ODK platform. You can join those those two column in any stastistical software you use.

Regards

Dickson

As @dicksonsamwel indicates, no there is no way to get the 'other' value added into the original select_multi result. But what you could do is add a calculation that appends the 'other' question's (string) value to the select_multi's (string) value, and use that result everywhere instead of the select_multi. eg

if(${other}='', ${select}, concat(${select},' ',${other}))

note, the ' ' (space) delimiter is critical.

FYI: the proper (and only) way to do what you want is to have Collect (& Enketa, et al) support open selections, discussed here.

1 Like

Dear Sarah, the problem is that kobocollect (ODK) has a problem of refreshing while you are on the same page. Try to display the other specify option outside of the group and it will work. You can see on the attached.select.xlsx (9.8 KB)

Try something like as I did for " A. CARACTERÍSTICAS GERAIS" : CFAR_HIV_Survey_ODK_form_v2.6.xls (85.5 KB)

Hey dear, I want to align the text in center on screen and i also want to fix a background image on screen which can be appear behind my questions as a background screen...

Hi @Ebrahim,

Please reply if only you find your question to be relevant to the topic. Or create a new thread. Also, one thread is enough. I have close the other in favor of

2 Likes

Hi @Sarah_Pfeil I just faced the same problem of multiple choices with selecting other. did you find the answer?