2

I am trying to use the dynamic django form script from http://www.djangosnippets.org/snippets/714/

The dynamic form is generated, but I am having hard time retrieving submitted fields through form.cleaned_data['myfield']

There are few comments on the snippet page, those didn't work either.

1 Answer 1

1

Have you made sure that you have called is_valid() on the form first, and that the field is passing it's validation routines?

1
  • thanks, it works with this at bottom if request.method == 'POST' and form.is_valid():
    – bocca
    Commented Oct 25, 2009 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.