That worked great!!!  Thanks so much, Anthony!!!
L.

On Tue, Jul 5, 2011 at 10:23 AM, Anthony <[email protected]> wrote:

> I'm not sure you can pre-populate a registration form that way.
> form.vars.email has to be set after the form is created but before
> form.accepts is called -- however, auth.register() creates the form and
> calls form.accepts. Instead, you can pre-populate by manipulating the form
> DOM directly:
>
> form.element(_name='email').update(_value='[email protected]')
>
>
> Anthony
>
> On Tuesday, July 5, 2011 1:08:31 PM UTC-4, Luis Goncalves wrote:
>
>> This doesn't seem to work with auth() forms:
>>
>> form = auth.register()
>>
>> form.vars.email = '[email protected]'
>>
>> return dict(form=form)
>>
>> doesn't show the predefined value for 'email' in a view that renders
>> {{=form}}
>>
>> Does anybody know why?
>>
>> Thanks!!
>> Luis.
>>
>

Reply via email to