You should do this in forms only. So

db.mytable.myfield.requires=IS_IN_SET(['option 1', 'option 2'])

On Mar 21, 10:07 pm, Jeffield <[email protected]> wrote:
> ahh.... that is cool....
> How can I display a string field as a selectbox in a SQLTABLE?
> i.e:http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
>
> Thanks,
> Jeff
> On Mar 21, 1:34 pm, mdipierro <[email protected]> wrote:
>
> > Try something like this:
>
> > db.mytable.myfield.represent=lambda value: '[x]' if value else '[ ]'
>
> > Massimo
>
> > On Mar 21, 9:28 am, Marco Prosperi <[email protected]> wrote:
>
> > > hello, how can I display a boolean field as a checkbox in a SQLTABLE?
>
> > > thanks, Marco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to