Adding a constraint to multiple choice questions with combination of answer

I need help correcting this constraint in a multi choice question.

  1. No concern can only be selected alone
  2. Do not know can only be selected alone
  3. Other options can be selected alone or as multiples
    not(selected(., ‘No_concern’) and (selected(., ‘A’) or selected (., ‘B’) or selected(/,’C’) or selected(.,’D’) or selected(.,’E’))) and not(selected(., ‘Dont_know’) and (selected(., ‘A’) or selected (., ‘B’) or selected(/,’C’) or selected(.,’D’) or selected(.,’E’)))

Hi @fya

Pay attention to the syntax which is inconsistent in your constraint

try again by not putting space between selected and the parentesis; using . instead of / ; and putting the space between , and '.

can you select both “No concern” and “don’t know”? if not, than try changing your and by or in the middle of your constraint.

Attaching your XLSForm or an extract always makes it easier to understand and thus to answer.

Best regards

1 Like