Re: newforms initial value

2008-04-09 Thread oliver
Hi, this is how we do it, when you initial the Form object, you can add "inital" values". ignore the request.session in there that isjust where we stored values if the user goes back and forth in multiple forms. the 1st '' part is the form element. form = BookingFormOne(initial={

Re: newforms initial value

2008-04-05 Thread Matias Surdi
Matias Surdi escribió: > Hi. > > How can I pass an initial value to a newforms form's widget? > > I know that there is an "initial" parameter for widgets, but what if I > don't know that parameter's value beforehand? > > What I'm trying to do is to be able to make a request to an url and > de

newforms initial value

2008-04-05 Thread Matias Surdi
Hi. How can I pass an initial value to a newforms form's widget? I know that there is an "initial" parameter for widgets, but what if I don't know that parameter's value beforehand? What I'm trying to do is to be able to make a request to an url and depending on some url parameters generate a