Hi Thomas,

Thanks for your quick reply!

I had a look at the docs, but it seems I have to enter the initial
values at the Form definition level. However, I am interested in
entering dynamic data depending on who is viewing the form. For
instance, in my case I want the user's email address to be displayed
in the form when they view the page. Since the form definition doesn't
have access to the request object, I presume this is not possible.

Is there any other way to do this?

Thanks,

Mike.

On Jan 20, 12:33 pm, Thomas Guettler <h...@tbz-pariv.de> wrote:
> shogunm...@googlemail.com schrieb:> Hi guys,
>
> > I've hunted around the docs and googled this (it's quite a niche
> > scenario so a bit hard to find!) and I'm still a bit stuck! I was
> > hoping somebody might be able to help out!
>
> > Can anyone tell me how to pre-fill form data without the form
> > automatically calling submit on the form so that the validation
> > messages don't appear in the rendered template?
>
> Hi,
>
> Check the docs for "initial".
>
>   Thomas
>
> --
> Thomas Guettler,http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to