Doh! I use jQuery so much that I forget html actually has some built in features.
On Sep 4, 3:35 pm, b vivek <[email protected]> wrote: > Thanks Mr. Freeze. But this is how I ended it up doing.... > > def createblog(): > """ok so this presents the interface for entering data""" > form=SQLFORM(db.blog) > thesubmitdiv=form.element('#submit_record__row') > thesubmitdiv[1].append(INPUT(_type='reset',_value="Reset")) > return dict(form=form) > > Seemed a little more easier! > > Thanks a Lot.. and am beginning to love this community for their prompt > responses and all the help! > Vivek > > On Sun, Sep 5, 2010 at 1:48 AM, mr.freeze <[email protected]> wrote: > > Not built in (that I know of) but you can add one easily: > > > def index(): > > form = SQLFORM.factory(Field('thing'),Field('stuff')) > > submit = form.element('input',_type='submit') > > reset = > > INPUT(_type='button',_onclick='jQuery(this).parents("form:first") > > [0].reset()',_value='Reset') > > submit.parent.insert(0, reset) > > return dict(form=form) > > > On Sep 4, 2:55 pm, b vivek <[email protected]> wrote: > > > Hi ! > > > The SQL Form and the Crud both are really good, but while generating > > forms > > > is there any way , they generate a reset button too. > > > Thanks > > > Vivek

