views:

140

answers:

1

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.

A: 

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

Andy Hume
thanks, it works with this at bottomif request.method == 'POST' and form.is_valid():
bocca