Re: [web2py] Re: Multiples requieres in SQLFORM

2018-10-24 Thread Christian Varas
Thanks Anthony, Sorry is my fault, i didn't knew how to explain the issue... I ended up like this: Field("Grado", default=grados_roca[2], requires=IS_IN_SET([], multiple=False)), and works perfect, now I have a empty set that I can populate in the view Thank you! ☺ Cheers. Chris. El mar., 2

[web2py] Re: Multiples requieres in SQLFORM

2018-10-23 Thread Anthony
Not sure I fully understand your requirements, but maybe: requires=IS_IN_SET(..., multiple=(0, MAX_SIZE_OF_SET)) The "multiple" arguments indicates multiple items can be selected, and it can either be a boolean or a list/tuple specifying a minimum and maximum number of values. In the latter cas