Andrew Sterling Hanenkamp > Form-Factory > Form::Factory::Feature::Control::Required

Download:
Form-Factory-0.022.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.022   Source  

NAME ^

Form::Factory::Feature::Control::Required - Makes sure a value is set on a control

VERSION ^

version 0.022

SYNOPSIS ^

  has_control last_name => (
      control => 'text',
      features => {
          required => 1,
      },
  );

DESCRIPTION ^

Reports a check error if the required value is not set. On scalar value controls, it checks that the value has a length greater than zero. On list value controls, it makes sure the list of selected items has more than zero elements.

METHODS ^

check_control

No op.

check

Reports an error if a scalar value does not have a length greater than 0. Reports an error if a list value has 0 items in the list.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2015 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: