logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::FormFu::Filter::CopyValue - copy the value from another field

Author

       Carl Franks <cpan@fireartist.com>

Caveats

       If the original field contains an invalid value (a value that will be constrained through a constraint)
       that invalid value will be copied to this field (the field with the CopyValue filter).  So, the user has
       to change two fields, or you can remove the invalid value in a custom constraint.

Description

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

License

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

Name

       HTML::FormFu::Filter::CopyValue - copy the value from another field

Synopsis

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

Version

       version 2.07

See Also