There are two pieces to this.

    1. The Django form.

    2. Whatever comes back in your HTML form's POST.

Your Django form will have zero or more fields in it. Your HTML form
will POST back those fields (if any) and possibly new ones. Your
Django form's __init__ will read the 'data' keyword argument passed in
from the view. From that data it will add to self.fields any fields
that were originally defined.

Within your HTML page you can either use JavaScript or you can require
one or more page submissions which will present the user with an
increasing number of form fields.

Each time a POST happens, your form's __init__ (if you write the code)
will read from that 'data' argument and dynamically create field
instances and add them to self.fields.

I hope this helps. If not, please ask a specific question. Even
better, post some code and explain where you're getting stuck. If you
want to give a higher-level explanation of what you're trying to
accomplish then maybe someone here will have already done it and be
able to suggest a more elegant solution.

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to