db.table.field.writable = False -> don't write
db.table.field.readable = False -> don't show (hide)
2016-12-12 14:17 GMT-02:00 lyn2py :
> It will always be allowed to take a value in insert, a value that you
> assign it to, for example, via "default", like so:
> db.table.field.default = some_val
It will always be allowed to take a value in insert, a value that you
assign it to, for example, via "default", like so:
db.table.field.default = some_value
To make the field non-editable to the end user, use:
db.table.field.editable = False
...
form = SQLFORM(db.table)
for the above examples, r
This is an XY question. Can you explain your user case?
On Friday, 9 December 2016 09:38:55 UTC-6, Amit Kumar Modak wrote:
>
> Hello,
>
> How can I make a field non-editable in SQLFORM, while it should be allowed
> to take a value in insert.
>
>
> Regards,
> Amit
>
--
Resources:
- http://web2py
3 matches
Mail list logo