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