keenlearner has asked for the wisdom of the Perl Monks concerning the following question:
Hi, experts, I am using HTML::FormHandler and trying to fill in value into the input type="text" , I am new to Moose, I try to read the code in FormHandler but still cannot find the way to fill default value into the input text. Has anybody achieve this ? Thanks.
my $args = { name => 'test_form', field_list => [ 'username' => { type => 'Text', apply => [ { check => qr/^[0-9a-z]*/, message => 'Contains invalid characters' } ] } ] }; my $form = HTML::FormHandler->new( %$args ); my $renderedform = $form->render; print $renderedform;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML::FormHandler fill in default value
by kcott (Archbishop) on Feb 07, 2012 at 15:02 UTC | |
Re: HTML::FormHandler fill in default value
by Anonymous Monk on Feb 07, 2012 at 14:55 UTC | |
Re: HTML::FormHandler fill in default value
by keenlearner (Acolyte) on Feb 07, 2012 at 15:18 UTC | |
by sundialsvc4 (Abbot) on Feb 07, 2012 at 21:32 UTC |
Back to
Seekers of Perl Wisdom