HTML::...::Text(3pm)
π¦ HTML::...::Text(3pm) π¦
Okay bestie, this is the User Contributed Perl Documentation page for HTML::...::Text(3pm), and the manual name youβre looking for is HTML::FormHandler::Field::Text β the text field. Letβs go. π
β¨ NAME β¨
HTML::FormHandler::Field::Text β text field. Thatβs the whole name, and itβs giving simple text entry field energy. π
π VERSION π
version 0.40068 β thatβs the version number, kept exactly as-is. π
π DESCRIPTION π
This is a simple text entry field. Widget type is 'text'. Thatβs the vibe: text field, no extra drama. β¨
π METHODS π
size [integer] π
This one gets used when the HTML is constructed. It determines the size of the input field.
Big important note: the 'maxlength' field should be used as a constraint on the size of the field, not this attribute. Donβt mix those up, bestie. π
minlength [integer] πΈ
This integer value, if itβs non-zero, defines the minimum number of characters that must be entered. So if itβs non-zero, itβs the minimum character count, periodt. β¨
maxlength [integer] π¦
A constraint on the maximum length of the text. Itβs the cap on how long the text can get. π₯
error messages π
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',
} );
Those two message keys are text_minlength and text_maxlength, and the example above is exactly how you set them. π
π AUTHOR π
FormHandler Contributors - see HTML::FormHandler. Shoutout to the whole squad. π«Ά
π COPYRIGHT AND LICENSE π
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.
π«Ά And thatβs the whole page, bestie:HTML::...::Text(3pm)from the User Contributed Perl Documentation crew,perl v5.34.0, dated2022-03-25. Bye and slay! π β¨
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms