Questions with Other option

Hello House,

Thank you all for this platform, its really wonderful

A quick one!

I just finished designing my form and while testing it on Enketo before I
convert to Xform, I realized that after writing the response to the 'other
option' question, its left hanging and there is no way the interviewer can
connect or bring it up in the next question that involves that answer .

For example:

q1. Which type of ceramic tiles do you use.

a. Gray Pale
b. Glazed
c. Other

After selecting 'c' and writing Mosaic as my answer to the 'other', there
is no way to tie mosaic to my next question since the 'other' still appears
as 'other' instead of Mosaic

My question is, is it possible to change 'other' to Mosaic in the next
question? What if I have an option of two 'others', how do I tie each
response to the next question with the individual 'other' chosen in the
current question. I don't know if this makes sense I just hope someone can
help me out on how to go about it.

This is possible but requires some creativity.

First, you ask the question.
select_one tile_options, q1, Which type of ceramic tiles do you use?

Then, ask for the text box for other.
text, q1_other, Please describe the other ceramic tile.

This text box should only be relevant when you select other, so add
this in the relevant column.
selected(${q1}, 'other')

Then you'll need to use a calculate question to build a label from
both the selects and the text box.
calculate, q1_label

Put this in the calculation column.
if(selected(${q1}, 'other'),${q1_other}, jr:choice-name(${q1},'${q1}'))

What this calculation says is if q1 is other, then store whatever you
typed in other. Else, store the label, not the name, of whatever
choice you made in q1.

Now you can use ${q1_label} wherever.
note, q2, Your q1 answer's label was ${q1_label}

That's it! I have attached an XLS and XML example for you to play with.

Yaw

other.xml (1.67 KB)

other.xlsx (10.5 KB)

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Thu, Aug 18, 2016 at 7:05 PM, resmarklimited@gmail.com wrote:

Hello House,

Thank you all for this platform, its really wonderful

A quick one!

I just finished designing my form and while testing it on Enketo before I
convert to Xform, I realized that after writing the response to the 'other
option' question, its left hanging and there is no way the interviewer can
connect or bring it up in the next question that involves that answer .

For example:

q1. Which type of ceramic tiles do you use.

a. Gray Pale
b. Glazed
c. Other

After selecting 'c' and writing Mosaic as my answer to the 'other', there is
no way to tie mosaic to my next question since the 'other' still appears as
'other' instead of Mosaic

My question is, is it possible to change 'other' to Mosaic in the next
question? What if I have an option of two 'others', how do I tie each
response to the next question with the individual 'other' chosen in the
current question. I don't know if this makes sense I just hope someone can
help me out on how to go about it.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thank you so much, it worked!...

··· On Thursday, August 18, 2016 at 8:05:31 PM UTC+1, resmark...@gmail.com wrote: > > > Hello House, > > Thank you all for this platform, its really wonderful > > A quick one! > > I just finished designing my form and while testing it on Enketo before I > convert to Xform, I realized that after writing the response to the 'other > option' question, its left hanging and there is no way the interviewer can > connect or bring it up in the next question that involves that answer . > > For example: > > q1. Which type of ceramic tiles do you use. > > a. Gray Pale > b. Glazed > c. Other > > After selecting 'c' and writing Mosaic as my answer to the 'other', there > is no way to tie mosaic to my next question since the 'other' still appears > as 'other' instead of Mosaic > > My question is, is it possible to change 'other' to Mosaic in the next > question? What if I have an option of two 'others', how do I tie each > response to the next question with the individual 'other' chosen in the > current question. I don't know if this makes sense I just hope someone can > help me out on how to go about it. >

Hello Yaw,

Thanks for helping out but I am still experiencing some difficulty
proceeding with this 'other' question. Is there a way to attach the
response for the 'other' given in the previous question to another question
entirely?

For example,

q1. Which type of ceramic tiles do you use.

a. Gray Pale
b. Glazed
c. Other

My response to the question is 'other' which is (Mosaic).

Next,

Q2. Which tiles is your favourite

a. Gray Pale
b. Glazed
c. Mosaic

As you can see, I have tied my 'other' option in Q1 to be Mosaic in Q2
because of the response given. Can this be possible? I am designing a
questionnaire that will make room for more than one 'other' in a particular
question , not differentiating the 'others' will only make me more
confused. Please if there is no way around this, will you be kind enough to
suggest something else for me?

··· On Thursday, August 18, 2016 at 8:05:31 PM UTC+1, resmark...@gmail.com wrote: > > > Hello House, > > Thank you all for this platform, its really wonderful > > A quick one! > > I just finished designing my form and while testing it on Enketo before I > convert to Xform, I realized that after writing the response to the 'other > option' question, its left hanging and there is no way the interviewer can > connect or bring it up in the next question that involves that answer . > > For example: > > q1. Which type of ceramic tiles do you use. > > a. Gray Pale > b. Glazed > c. Other > > After selecting 'c' and writing Mosaic as my answer to the 'other', there > is no way to tie mosaic to my next question since the 'other' still appears > as 'other' instead of Mosaic > > My question is, is it possible to change 'other' to Mosaic in the next > question? What if I have an option of two 'others', how do I tie each > response to the next question with the individual 'other' chosen in the > current question. I don't know if this makes sense I just hope someone can > help me out on how to go about it. >