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
Hi Dennis, "Baker, Dennis (sjmr)" wrote:
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?
Ab bit vague, your description. Can you please give an outline of your Page in HTML or even an URL? In any case you can use <dtml-var input_field_name> with any form field. If you have an option-list or multiple buttons in the same group, you can simply use the form name:list to get a list of items for this group you can walk thru with <dtml-in>. HTH Tino Wildenhain
You mean you don't know which submit button is pressed? If you, for examples have this form: <form> .. <input type=submit name=submit value=foo> <input type=submit name=submit value=bar> </form> You would use: <dtml-if "submit=='foo'"> .. <dtml-else "submit=='bar'"> .. </dtml-if> "Baker, Dennis (sjmr)" wrote:
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 )
-- Ken Kinder 303.381.7631
participants (3)
-
Baker, Dennis (sjmr) -
Ken Kinder -
Tino Wildenhain