hey there. i really like this class and can see many uses for it. however i have two suggestions for completeness:
1) add an incrementing tabindex attribute into the fields in the order they are generated. this helps with usability.
razvan - 2011-03-04 17:45:26 - In reply to message 2 from David Hyland
Thank you for your comments!
Yes the ID part I can do but it will be a small problem with the radio buttons (the name is always the same)
I think the ID for radio will be NAMEVALUE or something like that.
I'll think about it, it will be a problem if you use same name for a fieldset and a input field.
The ID right now, can be added using the $field_style ( array("ID" => "somename") )
And the tabindex I wanted to do but the problem was the order of the fields...
You know... you add the fields in some order, but if you use another order with the fieldsets, it won't work.
If your function works, I'll put it there along with your name.
David Hyland - 2011-03-04 17:54:47 - In reply to message 3 from razvan
regarding the radio IDs you are of course right. the solution there would be to add an incremented integer to each field thereby retaining the same name with unique IDs
the tabindex function works perfectly as i've added into your class. adding it at the very end ensures that it increments correctly down through the generated code regardless of which fieldset comes first.
if you want i can send you my updated file for your reference.