If a choice is selected in a checklist, then subsequently display textbox

Hello,

I would like a textbox to display if a choice is selected in a checklist.
For instance, I have a checklist that asks the respondent to select all the
problems they currently have, with the last choice being “other.” If they
select “other,” I want the next question to be a textbox where the
respondent can specify what “other” is. Is there a way to do that?
Currently in the “display condition” for the textbox, I have ‘Other’ =
‘Other’ (the last choice in the checkbox) but it does not seem to work, as
the textbox shows up regardless whether the respondent selects “other” from
the checklist or not.

Any help would be appreciated.

Thanks in advance,

Satoshi

Hi Satoshi,

If you use the display condition ‘Other’ = ‘Other’ this will always return
true as you’re comparing two constant string values. You want to check
whether the answer value of the select question is equal to this value -
try drag and dropping the select question into the display condition to
access this value.

-Will

··· On Wed, May 4, 2016 at 10:08 AM, Satoshi E wrote:

Hello,

I would like a textbox to display if a choice is selected in a checklist.
For instance, I have a checklist that asks the respondent to select all the
problems they currently have, with the last choice being “other.” If they
select “other,” I want the next question to be a textbox where the
respondent can specify what “other” is. Is there a way to do that?
Currently in the “display condition” for the textbox, I have ‘Other’ =
‘Other’ (the last choice in the checkbox) but it does not seem to work, as
the textbox shows up regardless whether the respondent selects “other” from
the checklist or not.

Any help would be appreciated.

Thanks in advance,

Satoshi


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

Hi Satoshi,

This page may also be useful:
https://confluence.dimagi.com/display/commcarepublic/Logic+for+Checkbox+Questions

Jeremy

··· On Wed, May 4, 2016 at 11:43 AM, William Pride wrote:

Hi Satoshi,

If you use the display condition ‘Other’ = ‘Other’ this will always return
true as you’re comparing two constant string values. You want to check
whether the answer value of the select question is equal to this value -
try drag and dropping the select question into the display condition to
access this value.

-Will

On Wed, May 4, 2016 at 10:08 AM, Satoshi E rts_gamer@hotmail.com wrote:

Hello,

I would like a textbox to display if a choice is selected in a checklist.
For instance, I have a checklist that asks the respondent to select all the
problems they currently have, with the last choice being “other.” If they
select “other,” I want the next question to be a textbox where the
respondent can specify what “other” is. Is there a way to do that?
Currently in the “display condition” for the textbox, I have ‘Other’ =
‘Other’ (the last choice in the checkbox) but it does not seem to work, as
the textbox shows up regardless whether the respondent selects “other” from
the checklist or not.

Any help would be appreciated.

Thanks in advance,

Satoshi


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


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


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.

Thank you all for the help, it is working now :slight_smile:

··· On Wednesday, May 4, 2016 at 5:47:13 PM UTC+2, Jeremy Wacksman wrote: > > Hi Satoshi, > > This page may also be useful: > https://confluence.dimagi.com/display/commcarepublic/Logic+for+Checkbox+Questions > > Jeremy > > On Wed, May 4, 2016 at 11:43 AM, William Pride <wpr...@dimagi.com > wrote: > >> Hi Satoshi, >> >> If you use the display condition 'Other' = 'Other' this will always >> return true as you're comparing two constant string values. You want to >> check whether the answer value of the select question is equal to this >> value - try drag and dropping the select question into the display >> condition to access this value. >> >> -Will >> >> On Wed, May 4, 2016 at 10:08 AM, Satoshi E <rts_...@hotmail.com > wrote: >> >>> Hello, >>> >>> I would like a textbox to display if a choice is selected in a >>> checklist. For instance, I have a checklist that asks the respondent to >>> select all the problems they currently have, with the last choice being >>> "other." If they select "other," I want the next question to be a textbox >>> where the respondent can specify what "other" is. Is there a way to do >>> that? Currently in the "display condition" for the textbox, I have 'Other' >>> = 'Other' (the last choice in the checkbox) but it does not seem to work, >>> as the textbox shows up regardless whether the respondent selects "other" >>> from the checklist or not. >>> >>> Any help would be appreciated. >>> >>> Thanks in advance, >>> >>> Satoshi >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "commcare-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to commcare-user...@googlegroups.com . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Wacksman > Dimagi , Inc. > >