What makes it hidden in the first place? I do not see a difference in the 
fields  except for the names.


On Friday, 7 February 2014 08:43:19 UTC-6, A36_Marty wrote:
>
> I'm stumped.  Have tried this with the grid, custom forms, etc. 
>
> Could someone advise how to achieve the questions highlighted below - or - 
> if it can't be done with a grid, how to achieve it?
>
> db.define_table('table',
>                 Field('field_hidden', 'string'),
>                 Field('field_not_hidden', 'string'))
>
> *def index():*
>     
>     Question: Code to hide 'field_hidden' to user but still make it 
> available in the validate_grid function?
>     
>     grid = SQLFORM.grid(table, onvalidation=validate_grid)
>
>     return grid
>     
> *def validate_grid(form):*
>     
>     Question: Code to be able to modify 'field_hidden' here & have it 
> written to the database?
>     
>     form.accepted = True
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to