logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CGI::Test::Form::Widget::Box::Check - A checkbox widget

Authors

       The original author is Raphael Manfredi.

       Steven Hilton was long time maintainer of this module.

       Current maintainer is Alexander Tokarev <tokarev@cpan.org>.

Description

       This class represents a checkbox widget, which may be checked or unchecked at will by users.

       The interface is the same as the one described in CGI::Test::Form::Widget::Box.

Name

       CGI::Test::Form::Widget::Box::Check - A checkbox widget

See Also

CGI::Test::Form::Widget::Box(3), CGI::Test::Form::Widget::Box::Radio(3).

perl v5.34.0                                       2022-06-10              CGI::Test::For...get::Box::Check(3pm)

Synopsis

        # Inherits from CGI::Test::Form::Widget::Box
        # $form is a CGI::Test::Form

        my ($agree, $ads) = $form->checkbox_by_name(qw(i_agree ads));

        die "expected a standalone checkbox" unless $agree->is_standalone;
        $agree->check;
        $ads->uncheck_tagged("spam OK");

return

See Also