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?

We then tried setting different names on the two submit buttons, but the 
indicator form setting only supports one name or a coderef.  I'm trying to keep 
all the form configs in yml files and not move it up into my controller code, 
but I'm willing to have my forms use a method in my CRUD base controller for 
the indicator, which would check whether one of the two submit buttons was 
used.  How can I set indicator to a coderef in yml?  Is it possible?  I tried:

  indicator: &Some::Package::some_method

and

  indicator: Some::Package::some_method

with no luck.  Any suggestions?

Thanks!

Byron

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to