Contact form wizard - values ​​between forms

19 views
Skip to first unread message

Leandro Alves

unread,
Jul 9, 2012, 7:34:18 AM7/9/12
to django...@googlegroups.com
Hi guys, 

I know this might sound simple, but how can I get/use the values of the fields from ContactForm1 into ContactForm2?

from django import forms

class ContactForm1(forms.Form):
    subject = forms.CharField(max_length=100)
    sender = forms.EmailField()

class ContactForm2(forms.Form):
    message = forms.CharField(widget=forms.Textarea)

For example I want to be able to use the value of the "sender" inside the ContactForm2, showing the message box just for some specific senders... 

Any help will be welcome. 

Thanks,

Leandro 

Leandro Alves

unread,
Jul 9, 2012, 6:07:14 PM7/9/12
to django...@googlegroups.com
Does anyone have any tip please? 

Thanks.
Reply all
Reply to author
Forward
0 new messages