O'Reilly logo

Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

cftextinput

Synopsis

<cfform>
  <cftextinput> 
  ...
</cfform>

Creates a Java-based text input control for use within a cfform. Provides data validation as well as customizable display characteristics.

Attributes

name=" name "

The form-field name for the text input control. Required.

align=" alignment "

Alignment of the text input control. Optional. Valid entries are Left, Right, Top, TextTop, Bottom, AbsBottom, Middle, AbsMiddle, and Baseline.

bgcolor=" color "

Background color for the text input control. Colors may be specified by name (Black, Blue, Cyan, Darkgray, Gray, LightGray, Magenta, Orange, Pink, Red, White, Yellow) or hex code in the form bgcolor="##FFFFCC". The double pound signs are necessary to keep ColdFusion from throwing a syntax error, or you may omit the pound signs altogether. Optional.

bold="Yes|No"

If Yes, displays text in bold. Optional. The default is No.

font=" font_name "

The font face to use for text displayed in the text input control.

fontsize=" integer "

The font size for text displayed in the text input control.

height=" height_in_pixels"

Height of the text input control in pixels. Optional.

hspace=" horizontal_spacing_in_pixels "

Width in pixels for the padding to the left and right of the text input control. Optional.

italic="Yes|No"

If Yes, displays text in italic. Optional. The default is No.

message=" text "

Text to appear if validation fails. Optional.

maxlength=" integer "

The maximum number of characters to accept in the text input control. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required