Custom Forms, Checkboxes--Which Approach?

I’m looking at creating some custom forms, and the checkboxes and radio buttons aren’t working right for me. (They work fine for a new form, but if you go back and edit, the wrong radio buttons are showing up checked, and unchecking a checkbox makes the form error out).

I looked for examples of some forms to reference. Some examples I found that do work:
Review of Systems Checks (reviewofs)
Review of Systems (ros)
(I also found a couple that don’t work for unchecking chekboxes)

Are these good ones to emulate?

What makes me question it is the page that seems to be describing object-oriented forms as a depreciated approach, and I don’t want to follow an example that you are trying to work away from. (https://www.open-emr.org/wiki/index.php/Smarty)