Saturday, October 23, 2010

Re: Forms: set required value at runtime

On Oct 24, 3:28 am, bobo <lovas.be...@codehouse.hu> wrote:
> I'd like to do, if I uncheck the 'same' field, then the required for
> the post_address change to True.
> I tried width the overall clean method, but when I raise
> forms.ValidationError, I can't raise the error for the post_address
> field.
>
> Can I change the required value at runtime?

It could be easier to do this at Javascript instead of django.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment