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

Thanks Andreas, I tried that …but I have 23 check boxes and they are only allowed to check one box.
If I set them all as required, they all get checked once I select one.