form1 = SQLFORM.factory(
         Field('from_tables', 'list:string', required=True,
notnull=True, requires = IS_LIST_OF(IS_IN_SET(['1', '2',
'3'],multiple=True)), comment = 'Select'),
     )

On Oct 18, 3:44 am, Manuele Pesenti <[email protected]> wrote:
> Hi *,
> I'm trying to use multiselection widget[1] with IS_LIST_OF validator in
> order to validate single choices but I got a strange error like this:
>
> SyntaxError: widget cannot determine options of no_table.from_tables
>
> here is the code I used in my controllers file where I want to define a
> form using SQLFORM.factory features
>
> form1 = SQLFORM.factory(
>          Field('from_tables', 'list:string', required=True,
> notnull=True, requires = IS_LIST_OF(IS_IN_SET(['1', '2', '3'])), widget
> = multiselect_widget, comment = 'Select'),
>      )
>
> any suggetion?
>
> Thanks a lot
>
>         Manuele
>
> [1]http://vimeo.com/15886413

Reply via email to