To temporarily solve the problem described in this post I added
keepvalues=True, now when the records aren't inserted I just submit
the form again, which somehow works.

However, this causes the reset button to no longer work:

def create_form():
    response.view='form.html'
    form=SQLFORM.factory(
        Field(..),
        Field()))
    form[0].insert(...)
    ....
    form[0][-1][1].append(INPUT(_type='reset',_value='Reset'))
    if form.accepts(request.vars,session,keepvalues=True):
        ...
    return dict(form=form)


How to I solve this problem?


Kind regards,

Annet

Reply via email to