Hi all,

I have a sight where I need to generate forms that are made up of two
or three other forms.  For example I have New User sign up form that
accepts user information (user name, name, password), a shipping and a
billing address (with the same usual field) and credit card info.
Sometimes, I need a composite form with all of the above while
sometimes I need a  form with just a subset of the information.  As an
example, I'd like to define a series of forms like this:

CreditCardForm
    - CardType = ChoiceField
    - CardNumber = CharField
    - CardExpiry = CharField

AddressForm
    - StreetAddress = CharField
    - City = CharField
    - State = CharField

NewUserForm
    - Username = CharField
    - Password = CharField
    - ShippingAddy = AddressForm
    - BillinAddy = AddressForm

Is there a way to do this sort of thing with the Forms API?  I had
hope for FormSets but that's a more dynamic thing that I need which is
really a Composite form pattern.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to