Carl Franks > HTML-FormFu-0.03003 > HTML::FormFu::Filter::CopyValue

Download:
HTML-FormFu-0.03003.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View Bugs
Report a bug
Source   Latest Release: HTML-FormFu-0.05001

NAME ^

HTML::FormFu::Filter::CopyValue - copy the value from an other field

SYNOPSIS ^

   elements:
      - type: Text
        name: username
      - type: Text
        name: nickname
        filters:
           - type: CopyValue
             field: username

DESCRIPTION ^

Filter copying the value of another field if the original value of this field is empty.

CAVEATS ^

If the value of the original field contains an invalid value (a value that will be constrained through a constraint) this invalid value will be choosen for this field (the field with CopyValue filter).

So the user has to change two fields or you remove the invalid value in a custom constraint.

AUTHOR ^

Mario Minati, mario.minati@googlemail.com

LICENSE ^

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.