Limit Number of selections for checkboxes

Is there a way to limit the number of options students can choose in the checkbox component? I want to limit the number of selections to, say, 3 out of 6 available options.

I don’t think you can limit them, but you can give a warning conditionally once the exceed your limit.
In a note CL:

c1=when MCName.isSelected(1) 1 otherwise 0
c2=when MCName.isSelected(2) 1 otherwise 0
...etc through c6
total= numericValue("${c1}+${c2}+${c3}+${c4}+${c5}+${c6}")
hidden: total<4
content: "Select 3 at most. Uncheck a selection."
1 Like