[Zope] Submit Button

Passin, Tom tpassin at mitretek.org
Wed Jun 30 15:02:50 EDT 2004


> From: zope-bounces at zope.org [mailto:zope-bounces at zope.org] On 

> Does anyone know if there is a way to have a button with a 
> label that differs from the value of the button. I am using 
> several buttons in a form that have the same name since they 
> call the same DTML method. I would like to give these buttons 
> the same label without giving them the same value.
> If the values are all the same, there is no way for me to 
> detect which button was clicked. Any help would be greatly 
> appreciated. Thanks.

In order of (my) preference -

1) Don't tie the button label to the method called.   Then you can have
different buttons call the same method.

2) Use <button> elements rather than <input> elements.  Button elements
display their text content as the label. 

Cheers,

Tom P



More information about the Zope mailing list