This should work:
db.mytable.roles.show_if = (db.mytable.name.contains('red'))
--
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 b
stumble upon this post. For some reason, this don't work:
*model:*
db.define_table('mytable',
Field('name', type='list:string',requires=IS_IN_SET
(['red', 'blue','yellow']),widget=lambda field, value:
SQLFORM.widgets.checkboxes.widget(field, value,
_style='bootstrap3_inline_fa
Works! Thanks.
Is it also possible for SQLFORM.factory?
On Wednesday, 10 June 2015 16:06:47 UTC+2, Anthony wrote:
>
> Try:
>
> db.table1.order.show_if = db.table1.colour.belongs(['red', 'blue'])
>
> Anthony
>
> On Tuesday, June 2, 2015 at 6:09:20 AM UTC-4, kecajk...@gmail.com
> wrote:
>>
>> Hi
Try:
db.table1.order.show_if = db.table1.colour.belongs(['red', 'blue'])
Anthony
On Tuesday, June 2, 2015 at 6:09:20 AM UTC-4, kecajkecaj...@gmail.com wrote:
>
> Hi,
>
> I'm using show_if to hide a filed of my form under certain conditions.
> Per web2py guide, show_if uses simple query, but it
Anyone?
On Tuesday, 2 June 2015 12:09:20 UTC+2, kecajk...@gmail.com wrote:
>
> Hi,
>
> I'm using show_if to hide a filed of my form under certain conditions.
> Per web2py guide, show_if uses simple query, but it doesn't work for
> logical oprators like "and" "or".
> In below example i would like
5 matches
Mail list logo