ined. This happens
> > no matter if it is filled in or not. Any idea what is going on here?
> > If I take the Textarea widget off it is fine.
>
> 'undefined' is not a Python value, but a Javascript one. Is it
> possible that you have some Javascript running on your form page -
> possi
area widget off it is fine.
'undefined' is not a Python value, but a Javascript one. Is it
possible that you have some Javascript running on your form page -
possibly an onsubmit handler - with a bug that's causing it to replace
the value of the textarea with 'undefined'?
It might help to add the line
I am making a modelform that looks like the below.
class ContactForm(forms.ModelForm):
name = forms.CharField(widget=forms.TextInput(attrs=
{'class':'required'}))
phone = forms.CharField(widget=forms.TextInput(attrs=
{'class':'required'}))
comments =
3 matches
Mail list logo