Now when I logout or try to log in with this custom form as the index page i get:
Traceback (most recent call last): File "gluon/restricted.pyc", line 62, in restricted File "/Users/Shared/web2py149-svn.app/Contents/Resources/ applications/cnrsa/views/generic.html", line 27, in <module> NameError: name 'form' is not defined On Nov 11, 10:15 am, mdipierro <[EMAIL PROTECTED]> wrote: > {{if form.record:}} > <input name="id" type=hidden value="{{=form.record.id}}/> > {{pass}} > > record is the second argument of SQLFORM(table,record) > > Massimo > > On Nov 11, 10:59 am, "Wes James" <[EMAIL PROTECTED]> wrote: > > > I have this: > > > <input name="id" type=hidden value="{{form.latest.id}}> > > > but the value comes out "None" > > > I did put in value="1" and it updated fine. Now to just get the id > > for the record.... > > > thx, > > > -wj > > > On Tue, Nov 11, 2008 at 9:55 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > > > Yes, update forms must have a INPUT id (the id of the record being > > > modified). This field can be hidden or readonly. Up to you. > > > > Massimo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---