[Zope] Simple form Problem
Cornelis J. de Brabander
brabander@fsw.leidenuniv.nl
Tue, 4 Apr 2000 08:16:20 +0200
Make all buttons of type 'submit' and give each button a distinctive name.
In your action method you can check which button was clicked, because the
value of your REQUEST.form has a 'submit' key that equals the name of that
button.
<dtml-if "submit=='button_name'">
cb
-----Oorspronkelijk bericht-----
Van: Baker, Dennis (sjmr) <DBaker@CHW.edu>
Aan: 'zope@zope.org' <zope@zope.org>
Datum: maandag 3 april 2000 23:27
Onderwerp: [Zope] Simple form Problem
>I am trying to build a form which has a dropdown at the top, and a bunch
of
>buttons below with different functions which to do with the list item. My
>problem is I can't figure out which button was pressed. I know you set a
>value for the button, but how do you interpret those values?
>
>
>Dennis Baker
>Information Systems Manager, St. Joseph's Medical Resources
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>