>
> how do i shut off or disable the 3rd column of comments under
> crud.update?
>
Are you saying your field definitions include comments, but you just don't
want them displayed on the crud.update form? I don't think there's a crud
setting for that (SQLFORM takes a 'comments' argument that can be set to
False, but crud does not). I suppose you could use CSS to hide them (all
comment elements have CSS class "w2p_fc"). Other options:
# Temporarily remove all field comments before creating form
for field in db.yourtable:
field.comment = ''
or
# Remove comments from the form after it is generated
form = crud.update(...)
for comment in form.elements('.w2p_fc'):
comment[0] = ''
> also, how can i change the number of columns and rows of a textarea
> for a text blob field? basically i wan to make it bigger?
>
I think you can just use the CSS "width" attribute of the textarea to make
it wider. You can also do:
# Affects all forms
db.define_table('yourtable',
Field('textinput', 'text', widget=lambda f, v:
SQLFORM.widgets.text.widget(f, v, _cols=80, _rows=20)))
or
# Affects only this form
form.element('textarea').update(_cols=80, _rows=20)
Anthony