I've begun exploring moving some of the modules I've written on my site to drupal 4.7 (from 4.6.x.) However, I've hit a stumbling block when I started to convert one of my more complex forms. A sample of the html for the form can be seen here:
http://www.garyndenise.org/move.html
The complexity in this form is that all the checkboxes are contained within unordered lists. Those lists, using javascript, can be "expanded" and "collapsed" by clicking on plus and minus signs. Actually, this type of "html/js" based collapsing tree-view has been done many times over. Getting it to work in the 4.6 forms API was very simple, as I could simply spit out the html code I wanted, replacing any 'input' tags with the appropiate form_checkbox() call. It isn't extremely themable, but thats okay... in this case functionality was more important than looks.
Unfortunatly, I can't figure out how to do this with the new forms API. It might be a simple case of not seeing whats there... or perhaps I AM seeing it, but I'm so stuck on the 'old way' of doing things that I'm unable to comprehend the new way.
Can anyone who understands the new form API tell me if something like that above page is possible - and then point me to the right direction to find out HOW I can inject my own (and not really all that structured) html into the resulting form? (Doing it in a theme isn't possible, btw - the unordered lists are nested recursively - and only the module which creates the form understands it.)