[Zope] smart buttons

Andy Smith andy.smith@iname.com
Wed, 24 Feb 1999 11:04:25 -0500


Try setting the NAME of the button the the method name followed by
':method'.

Here's a snippet from a form that does what you want.

		<INPUT TYPE="SUBMIT" NAME="manage_rename:method" VALUE="Rename">
		<INPUT TYPE="SUBMIT" NAME="manage_delObjects:method" VALUE="Delete">

Cheers,

Andy.

> -----Original Message-----
> From: julian@sodit.zereau.com [mailto:julian@sodit.zereau.com]On Behalf
> Of julian@zereau.net
> Sent: Wednesday, February 24, 1999 10:56 AM
> To: zope@zope.org
> Subject: [Zope] smart buttons
>
>
> Is there any nice automated way in Zope to make a form with
> multiple submit
> buttons each calling a different document?
>
> Currently I have hacked around this by calling a single document
> containing a
> deeply-nested conditional and some <!--#var "_['foo']"-->
> includes but this is
> giving me obscure errors and anyway is messy.
>
> ---
> Julian Morrison
> Programmer (Zereau Ltd)
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>