The later nicely works. :) Thanks.
On Wednesday, December 25, 2013 5:41:18 AM UTC+2, Massimo Di Pierro wrote: > > form.vars.f_org_member= auth.user.id > > should be done before the form is processed or better > > db.tablename.f_org_member.default = auth.user.id > > before the form is defined. > > > > On Tuesday, 24 December 2013 17:00:21 UTC-6, Avi A wrote: >> >> Hi, >> reading this: >> "Pre-populating the form >> >> It is always possible to pre-populate a form using the syntax: >> >> form.vars.name = 'fieldvalue'......" >> >> I'm trying this: >> >> {{=form.custom.begin}} >> {{form.vars.f_org_member= auth.user.id}} >> <div>{{=form.custom.widget.f_org_rep}}</div> >> <div>{{=form.custom.widget.f_org_member}}</div> >> <div>{{=form.custom.submit}}<div> >> <div>{{=form.custom.end}}</div> >> >> but it's not doing what I thought it should do, replace the list of users >> with just the current one which should pick an organization. ( this field >> should be hidden bty). >> Any help? >> Thanks. >> >> >> >> >> >> >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.