I'm a novice Web2py programmer and I've searched the net but can't figure this out.
I've got a simple webpage with this form:
form = FORM(TABLE(TR
(TH('BEG PLAN START DATE'), INPUT(_name='begpstrtdt', _class='date', requires=IS_DATE(), _value=t0, _style="width: 100px;")),
(TH('END PLAN START DATE'), INPUT(_name='endpstrtdt', _class='date', requires=IS_DATE(), _value=t0, _style="width: 100px;")),
TR('Group',INPUT(_name='group', _id='group', , requires=IS_IN_SET(['YES', 'NO']))),
TR('Email Results?',INPUT(_name='emailflg', _id='emailflg', _type='checkbox', _value='0')),
TR('Show Query?',INPUT(_name='qryflg', _id='qryflg', _type='checkbox', _value='1', _checked="checked",
_onclick="if(jQuery('#qryflg').prop('checked')) jQuery('#qryinfo').show(); else jQuery('#qryinfo').hide();")),
TR('Show Debug?',INPUT(_name='dbgflg', _id='dbgflg', _type='checkbox', _value='1', _checked="checked",
_onclick="if(jQuery('#dbgflg').prop('checked')) jQuery('#dbginfo').show(); else jQuery('#dbginfo').hide();")),
TR(INPUT(_type='submit',_value='Submit'))
))
Everything works except I can't get the Group dropdown, 3rd element, to be a dropdown menu. It shows up as a text field.
1. Is there an attribute I'm missing in the description?
2. How would I get the selected value?
I've seen many example using SQLFORM but I don't have a need for these fields to be saved or retrieved to/from a database.
Thanks,
Paul