Hell!
I would like to use constraint in multiple choices.
My variable has 5 categories. I would like to tell kobo to authorize only 2 choices.
I need your help.
Thanks
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
Great!!!
Kobo is the best.
Many thanks.
Moïse
2 Likes