| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
HTML::FormFu::Constraint::Required - Required Field Constraint
States that a value must be submitted. The empty string is not allowed.
Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
Carl Franks, cfranks@cpan.org
Based on the original source code of HTML::Widget::Constraint::All, by
Sebastian Riedel, sri@oook.de.
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-FormFu documentation | Contained in the HTML-FormFu distribution. |
package HTML::FormFu::Constraint::Required; use Moose; extends 'HTML::FormFu::Constraint'; sub constrain_value { my ( $self, $value ) = @_; return defined $value && length $value; } __PACKAGE__->meta->make_immutable; 1; __END__