Form::Factory::Control::Text - A single line text field
version 0.012
has_control your_name => ( control => 'text', options => { label => 'Your Real Name', default_value => 'Thomas Anderson', }, );
A regular text box.
This control implements Form::Factory::Control, Form::Factory::Control::Role::Labeled, and Form::Factory::Control::Role::ScalarValue.
The default value of the control.
The "value" is stashed.
If the "value" is set, use that. If the "default_value" is set use that. Otherwise, return the empty string.
We have a useful current value when it is defined and the length of the string is greater than zero.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<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.
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.