db.mytable.ref_field.default = value
db.mytable.ref_field.writable = False
Anthony
On Friday, February 5, 2016 at 8:24:10 AM UTC-5, Pierre wrote:
>
> I am assigning a value before the form is displayed like so :
> form.vars.ref_field=value and I want the user not to change this value
>
> the JQUERY(#ref_field_id).prop('disabled', true); doesn't work because
> no value is processed
> the JQUERY(#ref_field_id).prop('readonly', true); doesn't do better
> because it maintains the dropdown
>
> stuck with this and the dropdown menu (can't get rid of
> it......GGGRRRRRRRRRR)
>
>
> suppose there is 10000 possible reference values: imagine the
> catastrophe..........GGGGRRRRRRR
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.