When I try to create an edit form with SQLFORM, the form displays a id
field labeled 'Record id', even when I specify fields=['name'].

db.define_table('posts',SQLField('name','string',requires=IS_NOT_EMPTY
()))

form = SQLFORM(db.posts,obj,fields=['name'])


<tr id="id__row"><td>
<label for="id" id="id__label">Record id: </label></td><td><b>3</b></
td><td>
</td></tr>

<tr id="posts_name__row"><td>
<label for="posts_name" id="posts_name__label">Name: </label></td>
<td><input class="string" id="posts_name" name="name" type="text"
value="p1" />
</td><td></td></tr>

Is there a way to exclude or even hide the id field without building a
custom form?

Thanks,

Robin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to