---
name: "CGI::Test::Form::Widget::Input::Text_Field"
section: "3pm"
platform: "linux"
package: "libcgi-test-perl"
version: "1.111-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Test::Form::Widget::Input::Text_Field"
---

# CGI::Test::Form::Widget::Input::Text\_Field(3pm)

A text field

## NAME

CGI::Test::Form::Widget::Input::Text\_Field - A text field

## SYNOPSIS

```
 # Inherits from CGI::Test::Form::Widget::Input
 # $form is a CGI::Test::Form
 my $desc = $form->input_by_name("description");
 $desc->replace("small and beautiful");
```

## DESCRIPTION

This class models a single-line text field, where users can type text.

## INTERFACE

The interface is the same as the one described in CGI::Test::Form::Widget::Input, with the following additional attributes:

- "max\_length"

  The maximum allowed text length within the field.  If not defined, it means the length is not limited.

- "size"

  The size of the displayed text field, in characters.  The text held within the field can be much larger than that, however.

## AUTHORS

The original author is Raphael Manfredi.

Steven Hilton was long time maintainer of this module.

Current maintainer is Alexander Tokarev *\<tokarev@cpan.org\>*.

## SEE ALSO

**CGI::Test::Form::Widget::Input**(3).
