This guide will focus on the radios
type, but it can be use for checkboxes
in the exact same way.
TL;DR: Put an
#after_build
on form checkboxes or radios (or on the form element itself). Within theafter_build
, the items will be normalradio
orcheckbox
renderable elements.
Clik here to view.
