On May 12, 11:37 am, Miguel <migue...@gmail.com> wrote: > Hi all, > > I have a dynamic form with lot of fields. The problem is that in case of > error, the failed field is indicated to the user but the user must rewrite > the rest of the fields. > I am sure it may be a way to post the not error fields back to the form when > this form is displayed again but I don't find it in the documentation. > > Is it posible to do what I have commented? The template is the same for lot > of forms with lot of fields and it is not worthy to get one by one all the > parameters. > > thank you, cheers > > Miguel > Sent from Madrid, Spain
This should happen automatically. When you instantiate the form passing in request.POST, all the form fields are populated - so if it fails validation and gets redisplayed, the fields should be filled in. Can you post your code, so we can see what's going wrong? -- DR. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---