Re: Dynamic Form Fields in Django using JavaScript

2011-07-03 Thread AJ
Nevermind. I did not know about and eventually solved it with formsets. Thanks. On Sun, Jul 3, 2011 at 4:34 PM, AJ wrote: > I do realize that I need the number of elements so that I can loop over > that many times... > > > On Sun, Jul 3, 2011 at 4:30 PM, AJ wrote: > >> Hi Shawn, >> >> Thanks fo

Re: Dynamic Form Fields in Django using JavaScript

2011-07-03 Thread AJ
I do realize that I need the number of elements so that I can loop over that many times... On Sun, Jul 3, 2011 at 4:30 PM, AJ wrote: > Hi Shawn, > > Thanks for your reply. To begin with, I am trying this with a small test > app. > > I have this so far. I tried with two textarea elements on a pag

Re: Dynamic Form Fields in Django using JavaScript

2011-07-03 Thread AJ
Hi Shawn, Thanks for your reply. To begin with, I am trying this with a small test app. I have this so far. I tried with two textarea elements on a page and tried to save them but I cannot figure out how to save two elements. Each element list corresponds to one model instance or table row for Te

Re: Dynamic Form Fields in Django using JavaScript

2011-07-03 Thread Shawn Milochik
As long as, when you instantiate your Django forms.Form instance when the HTML form is posted, you create the fields passed in the form data and instantiate the fields to match you should be fine. Just go ahead and do it, and if you run into any snags post to the forum. Shawn -- You received