On Monday, January 18, 2016 at 12:30:43 PM UTC-5, aetagot...@gmail.com wrote: > > For the first method, will I be able to essentially map each instance of > form values to their database inserts? Kind of like if the user enters 5 > days, 5 copies of form fields are made. The first copy maps to the first > day, second copy maps to second day, etc? > > As for the second method, if I am understanding correctly..if I were to > load a set of separate forms via Ajax does that mean I would have to have > multiple forms defined therefore I wouldn't be able to generate the > instances dynamically? >
On the backend, you just have a function that defines a single form. Then in the browser via Javascript, you make Ajax calls to that function and keep retrieving new copies of the form via Ajax. You also submit each form separately via Ajax. This can all be done dynamically in Javascript. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.