Display condition following checkbox choice selection

Hi,

I have a checkbox question that has 3 choices, let's call them A, B and C.
It asks users if they need information on three topics, to then tell the
client.
I want a label X to be displayed when option A is selected, a label Y to be
displayed when option B is selected and a label Z to be displayed when
option C is selected.

Problem is, my labels are not displayed if more than one option is selected
(eg. if the user selects options A and B, the app displays no labels at all
whereas I would want it to show both label X and Y).

Confluence proposes to refer to the number of options selected
(count-selected), but that does not work for me as I need to know exactly
which options were selected. Their number is not enough to select the right
labels to display.

I have tried to use the following logic, but the app won't accept it at the
time of deploying a new version - despite accepting it when I save the
logic and save the app.
"selected(Question, A) or selected(Question, A,B) or selected(Question,
A,C) or selected(Question, A,B,C)"

Would you guys have any idea?

Using CommCare v2.30

Hi, me again.

It appears that Dimagi has fixed this issue and a simple display condition
"Selected(Question,A)" shows label X regardless of how many choices are
selected.

Appreciated improvement!

··· Le vendredi 13 janvier 2017 12:25:05 UTC, flor...@myagro.org a écrit : > > Hi, > > I have a checkbox question that has 3 choices, let's call them A, B and C. > It asks users if they need information on three topics, to then tell the > client. > I want a label X to be displayed when option A is selected, a label Y to > be displayed when option B is selected and a label Z to be displayed when > option C is selected. > > Problem is, my labels are not displayed if more than one option is > selected (eg. if the user selects options A and B, the app displays no > labels at all whereas I would want it to show both label X and Y). > > Confluence proposes to refer to the number of options selected > (count-selected), but that does not work for me as I need to know exactly > which options were selected. Their number is not enough to select the right > labels to display. > > I have tried to use the following logic, but the app won't accept it at > the time of deploying a new version - despite accepting it when I save the > logic and save the app. > "selected(Question, A) or selected(Question, A,B) or selected(Question, > A,C) or selected(Question, A,B,C)" > > Would you guys have any idea? > > Using CommCare v2.30 >