Hi, I have a simple form with two submit-buttons. First try:
def index(): form=FORM( INPUT(_type='submit', _value='A', _name='AA'), INPUT(_type='submit', _value='B', _name='BB'), ) if form.accepts(request, session): return dict(AA=form.vars.AA, BB=form.vars.BB) return dict(AA=form, BB='') And a simple view index.html AA: {{=AA}}<br />BB: {{=BB}} A click on button A gives AA:A BB: and a click on B gives AA: BB:B Everything works as expected - I need to know, which submit-button has been pressed. --------------------------- Secondy try: Now I have two other views, index.load like index.html AA: {{=AA}}<br />BB: {{=BB}} and an index2.html {{extend 'layout.html'}} {{=LOAD('default','index.load',ajax=True)}} Calling index2.html allows a click on button A and button B, but the values have gone. The result is always AA: BB: It is not possible to decide, which submit button was active. Any ideas? Regard, Martin --