Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability
version 0.022
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, }, );
Verifies that the value set for the control matches one of the available choices.
Verifies that the control does the Form::Factory::Control::Role::AvailableChoices.
Verifies that the value or values set match one or more of the available values.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
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.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.