Re: hidden fields in forms

2008-11-26 Thread ChrisK
> form = newFenceForm(initial={'auth_id' : auth_id}) Awesome. That was exactly what I needed - thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: hidden fields in forms

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 18:03 -0800, ChrisK wrote: > OK, thanks for your suggestions (and yes, I meant "POST"). > > The problem now appears to be how I initialize the form's value of > auth_id! Oh, right. I missed that error initially. Yes, you're doing it incorrectly. The first positional

Re: hidden fields in forms

2008-11-25 Thread ChrisK
OK, thanks for your suggestions (and yes, I meant "POST"). The problem now appears to be how I initialize the form's value of auth_id! If I use just {{form.as_p}} in my template, I get the following html: (Hidden field auth_id) This field is required. This field is required. Teaser: This

Re: hidden fields in forms

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 15:06 -0800, ChrisK wrote: > I'm just not getting this. I've looked at many examples and can't seem > to pass a hidden value into a form. > > The problem is that I initially get to the form with GET, and then > instantiate the form with PUT. The key that I need is part of

Re: hidden fields in forms

2008-11-25 Thread Brian Neal
On Nov 25, 6:24 pm, ChrisK <[EMAIL PROTECTED]> wrote: > > Well..you aren't passing auth_id to the template, you are passing > > form. auth_id is a field inside your template. Can you post your > > template? > > Oh, sorry - my oversight. Template is > > > id="id_auth_id" /> > Reminder String: >  

Re: hidden fields in forms

2008-11-25 Thread ChrisK
> Well..you aren't passing auth_id to the template, you are passing > form. auth_id is a field inside your template. Can you post your > template? Oh, sorry - my oversight. Template is Reminder String: URL of document: Address of interest: Range (in meters): I guess I'm

Re: hidden fields in forms

2008-11-25 Thread Brian Neal
On Nov 25, 5:06 pm, ChrisK <[EMAIL PROTECTED]> wrote: > I'm just not getting this. I've looked at many examples and can't seem > to pass a hidden value into a form. > > The problem is that I initially get to the form with GET, and then > instantiate the form with PUT. The key that I need is part

hidden fields in forms

2008-11-25 Thread ChrisK
I'm just not getting this. I've looked at many examples and can't seem to pass a hidden value into a form. The problem is that I initially get to the form with GET, and then instantiate the form with PUT. The key that I need is part of the original URL, and I'm trying to push it down into the