DOKK / manpages / debian 12 / libhtml-formhandler-perl / HTML::FormHandler::Field::Text.3pm.en
HTML::FormHandler::Field::Text(3pm) User Contributed Perl Documentation HTML::FormHandler::Field::Text(3pm)

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

version 0.40068

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

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.

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

A constraint on the maximum length of the text.

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',
        } );

FormHandler Contributors - see HTML::FormHandler

This software is copyright (c) 2017 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-03-25 perl v5.34.0