Make Checkboxes behave like radio (option) buttons

I have searched the web for a solution to this, but most I have found have been on Javascript websites. On a scale of 10 to 1, 10 being a Java guru and 1 being “Man, that’s a good cup o’ Joe”, I’m a 1.

I have created a table in Writer (that will be turned into a fill-in PDF) that has multiple rows. Some of the rows have 2 checkboxes, and some have 3. The default will be that no boxes are checked, but if one box is checked, and if subsequently if any other checkbox is checked within the same row, the previously checked checkbox will be unchecked.

I’m hoping all I need is to write a macro to accomplish this

I sincerely hope this is the proper place to ask this question.

Hi,
It looks like there’s some good documentation about form controls on the wiki here:
http://help.libreoffice.org/Common/Form_Controls#Option_Button

In the general case, it sounds like you could use the ‘Option Button’ control in your form and give all of the option buttons in a given row the same group name to get the “radio button”-style interface. But it sounds like you really want to use checkboxes.

In that case, you might either be able to style the radio buttons to look like checkboxes, or you could try to write a macro. Do you know how well LO macros export to PDF format?