Hi Lorin

I don't know whether it makes any difference (because I didn't look at
the source), but the optional argument multiple='multiple' would be
normally:

multiple=True  or  multiple=False

-D

On Nov 15, 6:28 pm, Lorin Rivers <lriv...@mosasaur.com> wrote:
> Thanks for all the help so far. I have made tons of progress on my app, and 
> now I'm trying to add a little polish.
>
> I have this code:
>
>   # Loops through the MAC Addresses and puts them in a list
>   # MAC Addresses is from a prior query
>   options=[str(my_macaddr[i].MacAddr) for i in range(len(my_macaddr))]
>
>   #creates the form for choosing which Optimizers, from which time frame
>   
> form=SQLFORM.factory(Field('Optimizers',requires=IS_IN_SET(options,multiple='multiple')))
>
> My app throws an error if you click the submit button without selecting an 
> item from the list in the form.
>
> I have tried adding 'zero=T('Choose one')', both with and without adding the 
> string 'Choose one' to the list 'options'. What would the best way to 
> validate this be?
>
> --
> Lorin Rivers
> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
> <mailto:lriv...@mosasaur.com>
> 512/203.3198 (m)

Reply via email to