Showing responses to checkbox questions in Case List/Case Detail

47 views
Skip to first unread message

Eliza Warren-Shriner

unread,
Aug 21, 2017, 6:53:31 AM8/21/17
to commcare-users
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

Aliza Stone

unread,
Aug 21, 2017, 6:56:29 AM8/21/17
to commcar...@googlegroups.com
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.

--
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.

William Pride

unread,
Aug 21, 2017, 6:57:23 AM8/21/17
to commcare-users
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:

--

Eliza Warren-Shriner

unread,
Aug 28, 2017, 9:59:07 AM8/28/17
to commcare-users
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
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-user...@googlegroups.com.

William Pride

unread,
Aug 28, 2017, 12:17:35 PM8/28/17
to commcare-users
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

To unsubscribe from this group and stop receiving emails from it, send an email to commcare-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages