Restrict the number of checkboxes allowed to tick

Hi, in Pro Foms I have 3 checkboxes. I would like only a maximum of 2 to be allowed to be selected.

Is this possible?