I must be missing something here because when I change the statement to status = forms.ChoiceField(required=False, choices=statlist, initial="choice3")
it still displays the 1st record in the list when I am trying to have the 3rd choice be the selected value. Jeff -------------- Original message -------------- From: Thomas Guettler <[EMAIL PROTECTED]> > > Am Mittwoch, 1. August 2007 15:58 schrieb jeffhg58: > > In newforms when I use the choicefield, I haven't been able to figure > > out how to set the value to say the third value in the drop down list. > > I tried setting the initial=3 but that did not seem to work. > > > > Here is the definition of the choicefield > > > > status = forms.ChoiceField(required=False, choices=statlist) > > Hi, > > if choices=(("a", "Letter A",) ... > > you set initial to "a". Simple, isn't it? > > Thomas > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---