Hi. There's a parameter to SQLFORM, showid which is True by default. Just set it to False. Like: form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False)
regards mmlado On Wednesday 03 June 2009 08:32:16 durga wrote: > Hi , > > I have created a table for user. to update the table i have written > the code > > def editprofile(): > user = db(db.users.id==session.userid).select()[0] > form = SQLFORM(db.users,user,fields=['firstname','lastname']) > > i found id field is showing in the browser though i have selected > ['firstname','lastname']. how to avoid this user.id from the form. > > output in browser: > > Id: 1 > First Name: durga > Last Name: prasad > > > thanks > durga --~--~---------~--~----~------------~-------~--~----~ 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 web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---