Contact form wizard - values between forms
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
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uEfG9bekhAwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home