Carl Franks wrote on 2009-06-16: > 2009/6/15 Byron Young <byron.yo...@riverbed.com>: >> Hey there, >> >> Maybe my google-fu is weak, but I can't find an answer to my questions, >> although I ran across some similar ones. >> >> I'm using Catalyst 5.08001 and HTML::Formfu 0.02004 (old, I know! I >> fear change) with Catalyst::Controller::HTML::FormFu 0.02000. >> >> We are adding a second submit button to a bunch of our forms, so now >> we have two submits with the same name and different values, and we >> check the value to see what do to after processing the form. The >> first problem we encountered is that if the form needs to re- >> displayed, like if there is a validation error, both submit buttons >> with show the value of the one that was used to submit the form. Is >> there a way to remove the value of a parameter before displaying the >> form so both buttons use the values from the yml file? > > HTML-FormFu 0.04000 fixes this. > > - Incompatible Change: Button element no longer sets > retain_default(1) - > now sets force_default(1). Fixes bug where multiple buttons with > same name were getting the wrong value after being redisplayed > after > errors. > > You could do the same on an application-wide level with default_args() > > Carl >
Thanks Carl, I'll look into upgrading. Byron _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu