
wxju46gefd at snkmail
Apr 12, 2011, 5:50 AM
Post #1 of 2
(339 views)
Permalink
|
|
Forms with multiple buttons?
|
|
I've chosen Catalyst::Controller::HTML::FormFu to use with my app. How would I have a form with multiple buttons? For example "revert", "preview", and "commit"? The latter two want the same textarea to be sent, so are part of the same form. Even having a different Form for "revert", since it doesn't use the same data and does a totally different action, I have no idea how to accomplish based on the documentation examples. Even if I didn't rely on the {form} stash variable but made more than one variable directly, how does it know which form was triggered? The basic concept of the module is that forms are rendered and processed at the same URL. That bothered me at first, but I can see how it is very good for successive attempts to submit a form with errors. --John _______________________________________________ List: Catalyst [at] lists Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ Dev site: http://dev.catalyst.perl.org/
|