On Thu, May 22, 2008 at 10:55 AM, bobhaugen <[EMAIL PROTECTED]> wrote:

>
> I got a newform that fails validation but gives no errors.  Have tried
> many variations, don't have any idea what is wrong.
>
> Here's the form:
>
> class PaymentTransactionForm(forms.Form):
>    transaction_id = forms.CharField(widget=forms.HiddenInput)
>
>
> transaction_type=forms.CharField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input', 'size': '8'}))
>
> order=forms.CharField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input'}))
>
> product=forms.CharField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input'}))
>
>
> transaction_date=forms.CharField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input', 'size': '8'}))
>
>
> quantity=forms.DecimalField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input', 'size': '8'}))
>
>
> amount_due=forms.DecimalField(widget=forms.TextInput(attrs={'readonly':'true',
> 'class': 'read-only-input', 'size': '8'}))
>    paid=forms.BooleanField(required=False,
> widget=forms.CheckboxInput(attrs={'class': 'paid',}))
>
> In other words, all readonly fields except one (the last one).  All of
> the fields have values.
>
> Here's the printed form after submission:
>

Of more interest than the html printed for the form would be the code you
use to create the form, and the template you use to display the form.
Without those it is hard to guess what is going wrong.

Karen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to