Multi-Select and Display Condition

Hi,

I am facing a small problem and kindly request your support:

  • I have a multi-select question with five options. The fifth option is
    "others".
  • We have another question "Other-Detail" that should be displayed if
    "Others" is selected in the previous question.
  • I have created a display condition and it is working fine. This means
    that if "Others" is selected, then the "Other-Detail" question will be
    displayed.
  • However, if someone has selected two options (including "Others"),
    then the next question (Other-Detail) is not displayed.

Kindly seek your advice and support on this.

Warm Regards,
Jeffrey

  • I have created a display condition and it is working fine. This
    means that if "Others" is selected, then the "Other-Detail" question will
    be displayed.
  • However, if someone has selected two options (including "Others"),
    then the next question (Other-Detail) is not displayed.

Kindly seek your advice and support on this.
We have another question "Other-Detail" that should be displayed if
"Others" is selected in the previous question.

Sounds like you've used "=" instead of "selected". Take a look at this:
http://confluence.dimagi.com/display/commcarepublic/List+of+xpath+functions

You should be able to use something like: selected(/data/multiselect_question,
‘others’), rather than: /data/multiselect_question = ‘others’.

Cheers,
Arvind

··· On Fri, Jun 29, 2012 at 11:23 AM, Jeffrey Jose wrote:

Perfect. Thanks.

Regards,
Jeffrey

··· On Fri, Jun 29, 2012 at 11:30 AM, Arvind wrote:

On Fri, Jun 29, 2012 at 11:23 AM, Jeffrey Jose jeffreyjose@gmail.comwrote:

  • I have created a display condition and it is working fine. This
    means that if "Others" is selected, then the "Other-Detail" question will
    be displayed.
  • However, if someone has selected two options (including "Others"),
    then the next question (Other-Detail) is not displayed.

Kindly seek your advice and support on this.
We have another question "Other-Detail" that should be displayed if
"Others" is selected in the previous question.

Sounds like you've used "=" instead of "selected". Take a look at this:
http://confluence.dimagi.com/display/commcarepublic/List+of+xpath+functions

You should be able to use something like: selected(/data/multiselect_question,
‘others’), rather than: /data/multiselect_question = ‘others’.

Cheers,
Arvind

Thanks, Arvind!

Just wanted to let you know about another useful documentation page that
may help answer these types of questions:
http://confluence.dimagi.com/display/commcarepublic/Common+Logic+and+Calculations

··· On Fri, Jun 29, 2012 at 3:01 AM, Jeffrey Jose wrote:

Perfect. Thanks.

Regards,
Jeffrey

On Fri, Jun 29, 2012 at 11:30 AM, Arvind arvind.sv@gmail.com wrote:

On Fri, Jun 29, 2012 at 11:23 AM, Jeffrey Jose jeffreyjose@gmail.comwrote:

  • I have created a display condition and it is working fine. This
    means that if "Others" is selected, then the "Other-Detail" question will
    be displayed.
  • However, if someone has selected two options (including "Others"),
    then the next question (Other-Detail) is not displayed.

Kindly seek your advice and support on this.
We have another question "Other-Detail" that should be displayed if
"Others" is selected in the previous question.

Sounds like you've used "=" instead of "selected". Take a look at this:
http://confluence.dimagi.com/display/commcarepublic/List+of+xpath+functions

You should be able to use something like: selected(/data/multiselect_question,
‘others’), rather than: /data/multiselect_question = ‘others’.

Cheers,
Arvind

--
Amelia Sagoff