Is it possible to use on SQLFORM.grid?
Em quarta-feira, 18 de março de 2015 às 16:11:44 UTC-3, pumplerod escreveu:
> I tried that. It doesn't work either. I've worked around my issue by
> simply not using hidden fields at all, but rather populating the fields
> after the form is submitted wit
I tried that. It doesn't work either. I've worked around my issue by
simply not using hidden fields at all, but rather populating the fields
after the form is submitted with the data I want recorded.
On Tuesday, March 17, 2015 at 12:42:53 PM UTC-5, Dave S wrote:
>
>
>
> On Tuesday, March 17, 2
On Tuesday, March 17, 2015 at 10:38:18 AM UTC-7, pumplerod wrote:
>
> Is there something else which needs to be setup to accomplish this? I
> currently have...
>
> db.define_table('brands',
> Field('brand_name', type='string', requires=IS_NOT_EMPTY(),
> label=T('Brand Name')),
>
Is there something else which needs to be setup to accomplish this? I
currently have...
db.define_table('brands',
Field('brand_name', type='string', requires=IS_NOT_EMPTY(),
label=T('Brand Name')),
Field('active', type='boolean',
label=T('active')))
form = SQLFORM(db
Well, thank you very much lesssugar, adding to my controller did indeed
work, so at least i can move forward now;)
For anyone else, this is what worked:
form = SQLFORM(db.games, hidden=dict(status="active"))
On Monday, July 29, 2013 7:23:30 PM UTC-4, lesssugar wrote:
>
> Take a look at the bo
Take a look at the book:
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=hidden+fields#Hidden-fields
So try defining your hidden field with *hidden *attribute:
SQLFORM(..., hidden=dict(hidden_field_name=hidden_field_value))
It should work.
On Monday, July 29, 2013 6:4
6 matches
Mail list logo