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

Hope that someone can give me some help with code. I need checkboxes to behave like a single choice radio button. Is that possible and how would I have to code that?

The reason that I can’t use radio buttons is that the label lenght has a maximum of 400 characters and since this is for a legal form, it contains lots of text.

Basically what I have to set up is a form with contact information, about 20 checkboxes of which only one can be selected, and a submit button. The contact info and checked box will be connected to a database.

Thanks for your help!

Hi,
Please review this thread regarding the same question.

Best,
Tal.

Thanks so much Tal, that will definitely help me figuring out how to code this!

@Tal, it works like a charm. I have one more question I hope you can help me with.

Is there a way to make it required to check 1 check box before being able to submit the form?

Set it as required in the properties

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.