> > Thanks for the note - what prevented me from making the custom layout is > that the form fields are generated on the fly; I don't know what they are > or how many up front (there are hundreds or thousands of fields generated > for this form), so inserting them separately seems tricky(?)
You can write Python code in the view to loop or do whatever is necessary to display the fields. > > However, the two extra elements are completely static and could be > inserted separately into the view. I need everything to be submitted > together with the form. > In that case, they'll have to go in the form, as you have done. If you want to insert into the web2py FORM element in the controller, you'll have to figure out the necessary DOM structure and manipulate it accordingly. For the two extra fields, you can always wrap them in a DIV(..., _id='d2') and insert that div in the appropriate part of the FORM DOM. Anthony -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

