# Showing responses to checkbox questions in Case List/Case Detail

**URL:** <https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679>\
**Category:** Users\
**Created:** [August 21, 2017, 10:53am UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679 "2017-08-21T10:53:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliza\_Warren-Shriner](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Eliza\_Warren-Shriner](https://forum.dimagi.com/u/Eliza_Warren-Shriner)\
**Post date:** [August 21, 2017, 10:53am UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679/1 "2017-08-21T10:53:31Z")

</div>

Hello,

I wanted to see if anyone had any experience saving responses to checkbox  
questions as case properties and including it in case list/case detail.  
Could this be successfully done using ID mapping, or is there another way  
to do it?  
Any advice would be much appreciated!

Best,  
Eliza

---

<div class="post-metadata">

**Author:** ![Aliza\_Stone](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Aliza\_Stone](https://forum.dimagi.com/u/Aliza_Stone)\
**Post date:** [August 21, 2017, 10:56am UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679/2 "2017-08-21T10:56:24Z")

</div>

Hi Eliza,

Yes, this is possible in exactly the way you described. You just want to  
save the answer value as a case property, and then use ID mapping in the  
case list/detail configuration screen to convert the saved value to the  
string you'd like to display.

> **···**
>
> On Mon, Aug 21, 2017 at 6:53 AM, Eliza Warren-Shriner \< eliza.warren.shriner@gmail.com\> wrote:
> 
> > Hello,
> > 
> > I wanted to see if anyone had any experience saving responses to checkbox  
> > questions as case properties and including it in case list/case detail.  
> > Could this be successfully done using ID mapping, or is there another way  
> > to do it?  
> > Any advice would be much appreciated!
> > 
> > Best,  
> > Eliza
> > 
> > --  
> > 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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 21, 2017, 10:57am UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679/3 "2017-08-21T10:57:20Z")

</div>

Hi Eliza,

In general you'll need to use some built in helper functions  
[https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-Multi-SelectHelperFunctions](https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-Multi-SelectHelperFunctions)  
in  
order to use checkbox question answers in logic. This is because these  
values are stored as a list (IE `1 2 3`) so referencing the values directly  
doesn't work as in other question types.

Cheers,  
Will

> **···**
>
> On Mon, Aug 21, 2017 at 6:53 AM, Eliza Warren-Shriner \< eliza.warren.shriner@gmail.com\> wrote:
> 
> > Hello,
> > 
> > I wanted to see if anyone had any experience saving responses to checkbox  
> > questions as case properties and including it in case list/case detail.  
> > Could this be successfully done using ID mapping, or is there another way  
> > to do it?  
> > Any advice would be much appreciated!
> > 
> > Best,  
> > Eliza
> > 
> > --  
> > 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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Eliza\_Warren-Shriner](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/8c91f0/32.png) [@Eliza\_Warren-Shriner](https://forum.dimagi.com/u/Eliza_Warren-Shriner)\
**Post date:** [August 28, 2017, 1:59pm UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679/4 "2017-08-28T13:59:07Z")

</div>

Hi Will,

Thanks for your response. Sounds like the way to do it would be to have a  
separate hidden value for each response option with an if statement using  
the "selected" helper function, then add each hidden value to the case  
detail list. Not sure we'll use this, since that complicates case detail a  
bit, but I'll let you know if I have additional questions.

Thanks,  
Eliza

> **···**
>
> On Monday, August 21, 2017 at 12:57:23 PM UTC+2, William Pride wrote: \> \> Hi Eliza, \> \> In general you'll need to use some built in helper functions \> in \> order to use checkbox question answers in logic. This is because these \> values are stored as a list (IE `1 2 3`) so referencing the values directly \> doesn't work as in other question types. \> \> Cheers, \> Will \> \> On Mon, Aug 21, 2017 at 6:53 AM, Eliza Warren-Shriner \< eliza.warr...@gmail.com \> wrote: \> \>\> Hello, \>\> \>\> I wanted to see if anyone had any experience saving responses to checkbox \>\> questions as case properties and including it in case list/case detail. \>\> Could this be successfully done using ID mapping, or is there another way \>\> to do it? \>\> Any advice would be much appreciated! \>\> \>\> Best, \>\> Eliza \>\> \>\> -- \>\> 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. \>\> \> \>

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 28, 2017, 4:17pm UTC](https://forum.dimagi.com/t/showing-responses-to-checkbox-questions-in-case-list-case-detail/3679/5 "2017-08-28T16:17:23Z")

</div>

Hi Eliza,

You could also use the 'calculate' case list display type to do this  
calculation just-in-time instead of during form entry.

Cheers,  
Will

> **···**
>
> On Mon, Aug 28, 2017 at 9:59 AM, Eliza Warren-Shriner \< eliza.warren.shriner@gmail.com\> wrote:
> 
> > Hi Will,
> > 
> > Thanks for your response. Sounds like the way to do it would be to have a  
> > separate hidden value for each response option with an if statement using  
> > the "selected" helper function, then add each hidden value to the case  
> > detail list. Not sure we'll use this, since that complicates case detail a  
> > bit, but I'll let you know if I have additional questions.
> > 
> > Thanks,  
> > Eliza
> > 
> > On Monday, August 21, 2017 at 12:57:23 PM UTC+2, William Pride wrote:
> > 
> > > Hi Eliza,
> > > 
> > > In general you'll need to use some built in helper functions  
> > > [https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-Multi-SelectHelperFunctions](https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-Multi-SelectHelperFunctions) in  
> > > order to use checkbox question answers in logic. This is because these  
> > > values are stored as a list (IE `1 2 3`) so referencing the values directly  
> > > doesn't work as in other question types.
> > > 
> > > Cheers,  
> > > Will
> > > 
> > > On Mon, Aug 21, 2017 at 6:53 AM, Eliza Warren-Shriner \< [eliza.warr...@gmail.com](mailto:eliza.warr...@gmail.com)\> wrote:
> > > 
> > > > Hello,
> > > > 
> > > > I wanted to see if anyone had any experience saving responses to  
> > > > checkbox questions as case properties and including it in case list/case  
> > > > detail. Could this be successfully done using ID mapping, or is there  
> > > > another way to do it?  
> > > > Any advice would be much appreciated!
> > > > 
> > > > Best,  
> > > > Eliza
> > > > 
> > > > --  
> > > > 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](mailto:commcare-user...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
