In my Signup form the user has to chose his languages and afterwards his 
proficiency in that language. 
So based on the selection from forms.ChoiceField it should display one of 
two other ChoiceFields.

Example: 
Language = English
-> Display English Proficiency below 

Language = German
-> Display German Proficiency below 

Currently both Proficiency fields are always shown. I did some searching on 
how to accomplish this and I came up with buzzwords like AJAX (using dajax) 
or Crispyforms (3rd Party App) but it shold be possible to use simple 
javascript as well. 
I don't want to include another 3rd party app if possible since I use this 
for my signup form which is from django-allauth. The Signup form is 
inheriting from forms.Form currently: class SignupForm(forms.Form):

I don't know what will happen to django-allauth if I change this to 
something else. In the template it just calls {{ form.as_p }} so I have no 
idea on how to set custom classes / id's on those form fields. I didn't 
find anything about this in Django Documentation here: 
https://docs.djangoproject.com/en/1.7/ref/forms/fields/#choicefield

Can anyone please tell me what the best solution would be? If I have to 
include some 3rd party app is it likely to break django-allauth for the 
Signup form?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dea48b6b-0a62-4f5f-a9e4-570608d8bebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to