How to code check boxes to behave like a radio button?

Set it as required in the properties