.. other then setting it to writable=True so it get's an id and name and then manipulate it with javascript on $(document).ready(function(...
On Wednesday, January 4, 2017 at 5:19:02 PM UTC+1, icodk wrote: > > Thanks. You are right . Still, is it possible to show a disabled input > element instead of the standard div shown for writable=False fields ? > > On Wednesday, January 4, 2017 at 5:11:23 PM UTC+1, Anthony wrote: >> >> The "represent" attribute should be a function that takes the value and >> outputs some transformation of it. >> >> Anthony >> >> On Wednesday, January 4, 2017 at 10:44:59 AM UTC-5, icodk wrote: >>> >>> In SQLFORM.factory, when a field is writable=False, the field is only >>> shown with it's default value as an html div. >>> Is it possible to represent it as a disabled INPUT (it both looks better >>> and is accessible for java script ) ? >>> I tried: >>> >>> Field('tag_id',writable=True,represent=INPUT(_disable=True,_type="text") )) >>> >>> >>> However with both ,writable=True and writable= False the represent is >>> ignored. >>> >>> -- 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/d/optout.