Checkboxradio: Retrieve form ID via .getAttribute()

Closes gh-7224
Fixes gh-7223