By using e.g.
form=SQLFORM.factory(Field('selector',requires=IS_IN_SET(select_data)))On Feb 24, 12:58 pm, Rupesh Pradhan <[email protected]> wrote: > I want to generate a form like this > > <select> > <option value='1'>first > <option value='2'>second > </select><br> > > by supplying data in the format like this to SQL form factory. > > select_data = [(1, 'first'), (2, 'second')] > > How do i achieve this?

