>
> Is there i way that i could make my gps_x and gps_y fields read-only so 
> field are rendered as <input type=text read-only />


form.element('input[name=gps_x]').update(_readonly=True)

or

Field('gps_x', ..., widget=lambda f, v: SQLFORM.widgets.double.widget(f, 
v,_readonly
=True))

Anthony

-- 

--- 
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