Some of the information here may be outdated, please check the book instead
[
edit]
def hideid2():
# Given a model named mod2, and a table named tbusers
# that has a field called lastn, you can hide
# the record id during an edit using SQLFORM() ,
# by adding the option showid=False
#
# 05/24/2008 Sterling Hankins
#
record=mod2(mod2.tbusers.lastn=='Smith').select()[0]
#
# Note: showid below
form=SQLFORM(mod2.tbusers, record, showid=False)
if form.accepts(request.vars):
response.flash=request.vars.lastn
return dict(form=form)