From: zope-bounces@zope.org [mailto:zope-bounces@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