richter 2004/01/02 07:28:15 Modified: Embperl/Form Validate.pm Log: -break parameter for Embperl::Form::Validate addtional docs Revision Changes Path 1.8 +9 -3 embperl/Embperl/Form/Validate.pm Index: Validate.pm =================================================================== RCS file: /home/cvs/embperl/Embperl/Form/Validate.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Validate.pm 2 Jan 2004 15:24:08 -0000 1.7 +++ Validate.pm 2 Jan 2004 15:28:15 -0000 1.8 @@ -811,11 +811,17 @@ =item -break => 1 -errors only break current block, but does not display any message +errors only break current block, but does not display any message. +-break => 0 turns bak to normal behaviour. This can be used for preconditions: -=item -break => 0 + [ + -key => 'action', emptyok => 1, -break => 1, ne => 0, -break => 0, + -key => 'input', 'required' => 1 + ] + +The above example will only require the field "input", when the field "action" is +not empty and is not zero. -turns on normal behaviour =item [arrayref]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
