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 [email protected].
For more options, visit https://groups.google.com/d/optout.