I have a large ORM model, with various groups of fields that need to be entered by the user, and many fields that should be hidden completely.
Ideally, the form I present will show those groups of fields in their own [HTML] fieldsets, but I do want them all be appear on one form to be submitted in one go.
So what is the best way of handling this? Would I create a custom "set_form_fields" methods on the ORM object so that I can fetch different groups of fieldsets on calls to Fieldset->add_model()? If I do, then can - or should - these fieldsets be joined together into one big form?
If I want to then apply some formatting to the form, so two groups of fields (billing and shipping addresses) can be displayed as two columns side-by-side, is that something I would need to tackle entirely through CSS, or can I pull out different sections, i.e. fieldsets, from a form for rendering each section in different places in the view, but still keeping the whole form as a single form that the user can submit?
Sorry if this sounds vague - I am just looking for advice on the most appropriate conceptual approach, before trying to do stuff in code that FuelPHP may or may not be designed to do.
-- Jason
To sum up: I want to create a complex form with sections pulled from different parts of a large ORM object. I am guessing that I will need multiple fieldsets to do this, so need to know how to generate different fieldsets with their own unique "view" onto the ORM object, and how to combine them into one HTML form. I'm trying to make as much use of the ORM as I can, and realise I could just simply build a form one item at a time manually as an alternative approach.