I know I've had problems with form submission when a form submit cause modification in its own fields (for SQLFORM.factory anyways).
When doing something like that, the following approach worked for me: <Dynamically generate the form using some info in DB/memory> <Do the Accept and modify the DB/memory with user-input if appropirate and record in a boolean that a modification took place> <If a modification took place, redirect to the current URL to force a page-reload> <Remainder of the code...> On Sep 27, 4:37 am, b0j3 <boje...@gmail.com> wrote: > Hi! > > I'd like to add new fields to SQLFORM.factory, but I don't know in > advance how many fields are there and their names. > So I'd like to create something as tuple with field names and then use > for command to cycle through the tuple and create Fields to add to > SQLFORM.factory. > > Can something like that be done and how? > All examples I see are with already created fields. > > Thanks, > > Boštjan