Top "Choicefield" questions

Django ChoiceField

I'm trying to solve following issue: I have a web page that can see only moderators. Fields displayed on this …

python django choicefield
How to get the label of a choice in a Django forms ChoiceField?

I have a ChoiceField, now how do I get the "label" when I need it? class ContactForm(forms.Form): reason = …

python django choicefield
Translate select options in Symfony2 class forms

I'm using a class form in Symfony2 Beta3 as follows: namespace Partners\FrontendBundle\Form; use Symfony\Component\Form\AbstractType; use …

forms symfony internationalization translation choicefield
Django populate a form.ChoiceField field from a queryset and relate the choice back to the model object

I have a simple form: class SubmissionQuickReplyForm(forms.Form): comment_text = forms.CharField(label='', required=False, widget=forms.Textarea(…

django django-forms choicefield
Django ChoiceField populated from database values

I am having problems using a ChoiceField to create a drop down list of values in the database. Here is …

django choicefield
Symfony3 : choice type field filled with array of objects

I have an entity Product. My product can have multiple names in different languages. A name in french, a name …

symfony object entity choice choicefield
Symfony choice field type reports "This value is not valid" when submitting an invalid option. How do I change this?

I've noticed that when using the Symfony 2.3 choice field type, if I try to submit an invalid option (by manually …

symfony choicefield
How to use a choiceField declared in the model, in a form. django

I have this in my model.py class marca(models.Model): marcas = ( ('chevrolet', 'Chevrolet'), ('mazda', 'Mazda'), ('nissan', 'Nissan'), ('toyota', 'Toyota'), (…

django django-models django-forms choicefield
Symfony 2 : Get available choices of a choice Field Type

1) Is there a symfony method ? I've got a basic form (not mapped to the database), with some choice fields, for …

forms symfony choicefield
django forms Dynamic choicefield list choices value

Problem I change my approach... My url : passing my_code on it (r'^test_form_2/(?P<my_code>\…

python django dynamic choicefield