Constrainte in multiple choises

Hello,
you can use count-selected( . ) <= 2 as constraint. Instead of . (dot) you can also use a variable, like ${Q1}.
See https://opendatakit.github.io/xforms-spec/#fn:count-selected
and Using constraint count-selected(X) to limit the number of options from the list of multiple responses

Best regards
Wolfgang

2 Likes