[dev] Horde_Form submit variable action

Chuck Hagenbuch chuck at horde.org
Thu Jan 13 13:20:02 PST 2005


Quoting Richard Wallace <rwallace at thewallacepack.net>:

> I've tried a number of things to workaround this, none of them 
> pretty.  One was to create a custom action that extends the submit 
> action and provide it with the name of the form that should actually 
> be used.  This doesn't work well, though, because I don't know when 
> constructing the form1 whether it is going to be the one rendered or 
> if the form2 is going to be rendered, so I run into a chicken and egg 
> problem.

I think you need to keep it as one form, not two, and reload the form on
choosing something from your dropdown. Look at PollForm in scry/edit.php, and
how it uses the 'submit' action.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list