| Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability |
Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability
version 0.014
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 the Form::Factory::Control::Role::AvailableChoices manpage and that it does either the Form::Factory::Control::Role::ListValue manpage or the Form::Factory::Control::Role::ScalarValue manpage.
Verifies that the value or values set match one or more of the available values.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
| Form::Factory::Feature::Control::MatchAvailableChoices - Check for choice availability |