Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability


Form-Factory documentation  | view source Contained in the Form-Factory distribution.

Index


NAME

Top

Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability

VERSION

Top

version 0.020

SYNOPSIS

Top

  has_control time_zone => (
      control => 'select_one',
      options => {
          available_choices => [
              map { Form::Factory::Control::Choice->new($_) } qw( PST MST CST EST )
          ],
      },
      features => {
          match_available_choices => 1,
      },
  );

DESCRIPTION

Top

Verifies that the value set for the control matches one of the available choices.

METHODS

Top

check_control

Verifies that the control does the Form::Factory::Control::Role::AvailableChoices.

check

Verifies that the value or values set match one or more of the available values.

AUTHOR

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Form-Factory documentation  | view source Contained in the Form-Factory distribution.