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?

Sign up to request clarification or add additional context in comments.

1 Comment

thanks, it works with this at bottom if request.method == 'POST' and form.is_valid():

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.