I am trying to figure out how to render out a custom template from a form I add fields to based on an array. So for every element in the array I push a new field into the fieldset I use for the form.
What I am trying to accomplish is a cart review page with all the products added to a cart. Each item in the list has a remove button to eliminate it from the cart, a field with a number to change the amount and a update button.
So I can't just push all the fields into the form as they won't be formatted into the table I need. I can see when you render out a custom template for a form how you specify a field with a specific name should go here and so on. This won't work if I don't know the amount of fields ahead of time.
Maybe there is a better way to do this?