On 9/26/06, George Hartzell <[EMAIL PROTECTED]> wrote:
George Hartzell writes: > > I have a page that has several forms, each form has a hidden input > named "rm" which specifies a unique the runmode for the contents of > that form. > > The runmodes use CAP::ValdateRM. When there's an error, it generates > an error page for me but files in *all* of the forms' "rm" input > variables with the value of the runmode that generated the error. > > I understand why it's happening, but the resulting form doesn't do the > right thing if someone chooses one of the other submit buttons. > > Anyone have any suggested work arounds?I apologize for answering my own questions, but adding { ignore_fields => ['rm'] }, to the check_rm call seems to make it behave. Does that seem like the right solution?
You should also be able to name your forms, and have HTML::FillInFOrm (which is used under the covers by ValidateRM) only fill in the form you are concerned about. This means all other forms on the page are left as is. See the docs for HTML::FillInForm for the right syntax. Cheers, Cees --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
