No this does not work:
> ...requires=[IS_IN_SET(...), IS_NOT_EMPTY(), ...]
Here the widget is added manually:
> db.define_table('info',
> Field('info_number', 'integer', label='Info Number'),
> Field('description', 'text'),
> Field('environment', widget=SQLFORM.widgets.checkboxes.widget),
> Field('notice'))
On Sep 30, 7:39 pm, Anthony <[email protected]> wrote:
> On Friday, September 30, 2011 3:48:53 PM UTC-4, DenesL wrote:
>
> > ...requires=[IS_IN_SET(...), IS_NOT_EMPTY(), ...]
>
> Are you saying that the above currently works but simply suppresses the
> widget? In that case, would it be possible to manually add the widget back?
>
> ...requires = [IS_NOT_EMPTY(), IS_IN_SET(...)] # widget won't show by
> default due to the list
> ...widget = SQLFORM.widgets.multiple.widget # manually specify the multiple
> widget
>
> Anthony