[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Niphlod
> > Why I need a combobox with multiple=False?, Well, is for aesthetics. > > although misleading. "select one choice amongst multiple items" is usually: - a select box --> when items are a lot - radio buttons --> when items are a few -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
(SOLVED) Anthony: Thanks for your ideas. Finally I solved this: Code: 1. form = SQLFORM.factory( 2.Field('numero', requires=IS_NOT_EMPTY()), 3.Field('fecha', 'datetime', requires=IS_NOT_EMPTY()), 4.Field('gasto', requires= IS_IN_SET(gastos_list,

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 3:34:02 PM UTC-4, José Eloy wrote: > > Anthony > > With options I mean SQLFORM.widgets.options.widget. I checked and > discovered that using either SQLFORM.widgets.options.widget or > SQLFORM.widgets.multiple.widget I get an html select element. My question > is how

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
Anthony With options I mean SQLFORM.widgets.options.widget. I checked and discovered that using either SQLFORM.widgets.options.widget or SQLFORM.widgets.multiple.widget I get an html select element. My question is how to create a SELECT (no dropdown) with multiple=False. I want to select only

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 3:08:13 PM UTC-4, José Eloy wrote: > > Thanks Anthony > > But if I use options I get a dropdown combo, instead I want a SELECT. Is > this possible? > Not sure what you mean. With "options", you should get a dropdown that allows you to select a single option. Both "o

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
Thanks Anthony But if I use options I get a dropdown combo, instead I want a SELECT. Is this possible? Regards -- 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 Issue

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
You have explicitly specified the "multiple" widget for this field, so the validator has no effect on the widget. You should instead use the "options" widget. Anthony On Thursday, October 30, 2014 2:41:04 PM UTC-4, José Eloy wrote: > > Hi! > > I have a SQLFORM.factory that define a SELECT. I wa