I tried edit mode and put the following script in the view which works but
feels so stupid and user cannot copy the values which I have to allow them
top copy and paste.
<script>
jQuery(document).ready(function(){
jQuery('#main').find('input, select').attr("readonly", true);
});
</script>
On Thursday, February 5, 2015 at 11:22:49 AM UTC-6, Omi Chiba wrote:
>
> In another word, it shows fine when I use {{=form.custom.widget.Grade}}
> with edit mode ( form = SQLFORM(db.KR_Product,record, readonly=False))
> but not when I do readonly=True
>
>
--
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.