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

HTML::FormHandler::Field::Text - text field

Author

       FormHandler Contributors - see HTML::FormHandler

Description

       This is a simple text entry field. Widget type is 'text'.

Methods

size[integer]
       This is used in constructing HTML. It determines the size of the input field.  The 'maxlength' field
       should be used as a constraint on the size of the field, not this attribute.

   minlength[integer]
       This integer value, if non-zero, defines the minimum number of characters that must be entered.

   maxlength[integer]
       A constraint on the maximum length of the text.

   errormessages
       Set error messages (text_minlength, text_maxlength):

           has_field 'my_text' => ( type => 'Text', messages =>
               {  'text_minlength' => 'Field is too short',
                  'text_maxlength' => 'Field is too long',
               } );

Name

       HTML::FormHandler::Field::Text - text field

Version

       version 0.40068

See Also